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:
parent
fa5040d5da
commit
de307623b2
@ -758,7 +758,7 @@ int HTTPClient::sendRequest(const char * type, Stream * stream, size_t size)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(size > 0) {
|
if(size > 0) {
|
||||||
addHeader("Content-Length", String(size));
|
addHeader(F("Content-Length"), String(size));
|
||||||
}
|
}
|
||||||
|
|
||||||
// send Header
|
// send Header
|
||||||
@ -1324,7 +1324,8 @@ int HTTPClient::handleHeaderResponse()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(_canReuse && headerName.equalsIgnoreCase(F("Connection"))) {
|
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;
|
_canReuse = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user