We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 40a511f + c0f8ce9 commit 6af4bf5Copy full SHA for 6af4bf5
libraries/ESP8266WebServer/src/ESP8266WebServer.cpp
@@ -226,8 +226,8 @@ void ESP8266WebServer::sendContent_P(PGM_P content) {
226
contentUnitLen = HTTP_DOWNLOAD_UNIT_SIZE;
227
}
228
else {
229
- // reached terminator
230
- contentUnitLen = contentNext - contentUnit;
+ // reached terminator. Do not send the terminator
+ contentUnitLen = contentNext - contentUnit - 1;
231
content = NULL;
232
233
0 commit comments