From 90f869e7721f73ee480c7490bb5c63493f5e4d06 Mon Sep 17 00:00:00 2001 From: Frank Date: Wed, 4 Nov 2020 01:24:01 +0100 Subject: [PATCH] Fix BUG: Parsing of first line fails (#4484) ..because a firstLine = false; is missing ;) --- libraries/HTTPClient/src/HTTPClient.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/HTTPClient/src/HTTPClient.cpp b/libraries/HTTPClient/src/HTTPClient.cpp index f5bd56ed..4b59b00d 100644 --- a/libraries/HTTPClient/src/HTTPClient.cpp +++ b/libraries/HTTPClient/src/HTTPClient.cpp @@ -1199,6 +1199,7 @@ int HTTPClient::handleHeaderResponse() log_v("RX: '%s'", headerLine.c_str()); if(firstLine) { + firstLine = false; if(_canReuse && headerLine.startsWith("HTTP/1.")) { _canReuse = (headerLine[sizeof "HTTP/1." - 1] != '0'); }