1
0
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:
Ivan Grokhotkov 2015-11-11 01:11:31 +03:00
commit 6af4bf5496

View File

@ -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;
} }