Add bitcoind authorization check
This commit is contained in:
parent
ab234cf976
commit
96a48576c5
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue