Skip to content

Commit

Permalink
Fix BUG: Parsing of first line fails (#4484)
Browse files Browse the repository at this point in the history
..because a firstLine = false; is missing ;)
  • Loading branch information
FrankBoesing authored Nov 4, 2020
1 parent be4d3b6 commit 90f869e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libraries/HTTPClient/src/HTTPClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit 90f869e

Please sign in to comment.