Skip to content

Commit 90f869e

Browse files
authored
Fix BUG: Parsing of first line fails (#4484)
..because a firstLine = false; is missing ;)
1 parent be4d3b6 commit 90f869e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: libraries/HTTPClient/src/HTTPClient.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -1199,6 +1199,7 @@ int HTTPClient::handleHeaderResponse()
11991199
log_v("RX: '%s'", headerLine.c_str());
12001200

12011201
if(firstLine) {
1202+
firstLine = false;
12021203
if(_canReuse && headerLine.startsWith("HTTP/1.")) {
12031204
_canReuse = (headerLine[sizeof "HTTP/1." - 1] != '0');
12041205
}

0 commit comments

Comments
 (0)