Add bitcoind authorization check
This commit is contained in:
parent
ab234cf976
commit
96a48576c5
@ -41,7 +41,7 @@ void checkBitcoinBlock(void *pvParameters)
|
|||||||
http.addHeader("Authorization", "Basic " + authEncoded);
|
http.addHeader("Authorization", "Basic " + authEncoded);
|
||||||
|
|
||||||
int httpCode = http.POST(payload);
|
int httpCode = http.POST(payload);
|
||||||
if (httpCode > 0)
|
if (httpCode > 0 || httpCode != HTTP_CODE_UNAUTHORIZED)
|
||||||
{
|
{
|
||||||
String response = http.getString();
|
String response = http.getString();
|
||||||
deserializeJson(jsonDoc, response);
|
deserializeJson(jsonDoc, response);
|
||||||
|
Loading…
Reference in New Issue
Block a user