Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 90f869e

Browse files
authoredNov 4, 2020
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
 

‎libraries/HTTPClient/src/HTTPClient.cpp

Lines changed: 1 addition & 0 deletions
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)
Failed to load comments.