mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-21 10:26:06 +03:00
Merge pull request #988 from JohnSL/issue_987
Exclude the terminator in sendContent_P
This commit is contained in:
commit
6af4bf5496
@ -226,8 +226,8 @@ void ESP8266WebServer::sendContent_P(PGM_P content) {
|
|||||||
contentUnitLen = HTTP_DOWNLOAD_UNIT_SIZE;
|
contentUnitLen = HTTP_DOWNLOAD_UNIT_SIZE;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// reached terminator
|
// reached terminator. Do not send the terminator
|
||||||
contentUnitLen = contentNext - contentUnit;
|
contentUnitLen = contentNext - contentUnit - 1;
|
||||||
content = NULL;
|
content = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user