Fix BUG: Parsing of first line fails (#4484)

..because a firstLine = false; is missing ;)
This commit is contained in:
Frank 2020-11-04 01:24:01 +01:00 committed by GitHub
parent be4d3b6cb8
commit 90f869e772
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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');
}