Skip to content

Commit 578c90f

Browse files
committed
Fixing final write length for sendContent_P
1 parent 0bd3b72 commit 578c90f

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)