mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-12 01:53:07 +03:00
Merge remote-tracking branch 'esporigin/esp8266' into SPIFFS-OTA
This commit is contained in:
@ -130,10 +130,10 @@ void ESP8266WebServer::_prepareHeader(String& response, int code, const char* co
|
||||
|
||||
sendHeader("Content-Type", content_type, true);
|
||||
if (_contentLength != CONTENT_LENGTH_UNKNOWN && _contentLength != CONTENT_LENGTH_NOT_SET) {
|
||||
sendHeader("Content-Length", String(_contentLength).c_str());
|
||||
sendHeader("Content-Length", String(_contentLength));
|
||||
}
|
||||
else if (contentLength > 0){
|
||||
sendHeader("Content-Length", String(contentLength).c_str());
|
||||
sendHeader("Content-Length", String(contentLength));
|
||||
}
|
||||
sendHeader("Connection", "close");
|
||||
sendHeader("Access-Control-Allow-Origin", "*");
|
||||
|
Reference in New Issue
Block a user