-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
2 changed files
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1080,6 +1080,8 @@ int HTTPClient::handleHeaderResponse() | |
return HTTPC_ERROR_NOT_CONNECTED; | ||
} | ||
|
||
_canReuse = !_useHTTP10; | ||
|
||
String transferEncoding; | ||
_returnCode = -1; | ||
_size = -1; | ||
|
@@ -1098,6 +1100,7 @@ int HTTPClient::handleHeaderResponse() | |
|
||
if(headerLine.startsWith("HTTP/1.")) { | ||
_returnCode = headerLine.substring(9, headerLine.indexOf(' ', 9)).toInt(); | ||
_canReuse = (_returnCode != '0'); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
earlephilhower
Contributor
|
||
} else if(headerLine.indexOf(':')) { | ||
String headerName = headerLine.substring(0, headerLine.indexOf(':')); | ||
String headerValue = headerLine.substring(headerLine.indexOf(':') + 1); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this looks broken to me:
_returnCode
is initalized above to -1 (int)am i misunderstanding something or is this broken?