We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8fe394e + 2df4a0b commit a2d3649Copy full SHA for a2d3649
libraries/ESP8266HTTPClient/src/ESP8266HTTPClient.cpp
@@ -906,7 +906,8 @@ int HTTPClient::handleHeaderResponse()
906
_returnCode = headerLine.substring(9, headerLine.indexOf(' ', 9)).toInt();
907
} else if(headerLine.indexOf(':')) {
908
String headerName = headerLine.substring(0, headerLine.indexOf(':'));
909
- String headerValue = headerLine.substring(headerLine.indexOf(':') + 2);
+ String headerValue = headerLine.substring(headerLine.indexOf(':') + 1);
910
+ headerValue.trim();
911
912
if(headerName.equalsIgnoreCase("Content-Length")) {
913
_size = headerValue.toInt();
0 commit comments