1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00

Move a couple larger strings from rodata to flash (#6976)

This commit is contained in:
Dirk Mueller 2020-01-03 02:26:08 +01:00 committed by Develo
parent fa5040d5da
commit de307623b2

View File

@ -758,7 +758,7 @@ int HTTPClient::sendRequest(const char * type, Stream * stream, size_t size)
}
if(size > 0) {
addHeader("Content-Length", String(size));
addHeader(F("Content-Length"), String(size));
}
// send Header
@ -1324,7 +1324,8 @@ int HTTPClient::handleHeaderResponse()
}
if(_canReuse && headerName.equalsIgnoreCase(F("Connection"))) {
if(headerValue.indexOf("close") >= 0 && headerValue.indexOf("keep-alive") < 0) {
if (headerValue.indexOf(F("close")) >= 0 &&
headerValue.indexOf(F("keep-alive")) < 0) {
_canReuse = false;
}
}