Add bitcoind authorization check

This commit is contained in:
Djuri Baars 2023-08-23 20:43:31 +02:00
parent ab234cf976
commit 96a48576c5

View File

@ -41,7 +41,7 @@ void checkBitcoinBlock(void *pvParameters)
http.addHeader("Authorization", "Basic " + authEncoded);
int httpCode = http.POST(payload);
if (httpCode > 0)
if (httpCode > 0 || httpCode != HTTP_CODE_UNAUTHORIZED)
{
String response = http.getString();
deserializeJson(jsonDoc, response);