Skip to content

Commit 51595f6

Browse files
committed
Merge pull request esp8266#880 from JohnSL/sendContent_P-864
Fixing final write length for sendContent_P
2 parents b478eac + 578c90f commit 51595f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ESP8266WebServer/src/ESP8266WebServer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ void ESP8266WebServer::sendContent_P(PGM_P content) {
222222
}
223223
else {
224224
// reached terminator
225-
contentUnitLen = contentNext - content;
225+
contentUnitLen = contentNext - contentUnit;
226226
content = NULL;
227227
}
228228

0 commit comments

Comments
 (0)