From 96a48576c564cd7f2efa02b644c8458d22f94878 Mon Sep 17 00:00:00 2001 From: Djuri Baars Date: Wed, 23 Aug 2023 20:43:31 +0200 Subject: [PATCH] Add bitcoind authorization check --- src/tasks/blocknotify.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tasks/blocknotify.cpp b/src/tasks/blocknotify.cpp index 5482c37..28daf0b 100644 --- a/src/tasks/blocknotify.cpp +++ b/src/tasks/blocknotify.cpp @@ -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);