You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using ESP8266WebServer::send_P will cause an empty content page to be sent when the data uses content length of zero.
Sketch
Start with the CaptivePortalAdvanced example sketch.
First, make the modification as found in #5013 so it will function correctly.
Then inside the handleHttp.h file, add the following at the top
const char* c_xmlTextHtml PROGMEM = "text/html";
const char* c_xmlEmpty PROGMEM = ""; // or even "\0\0\0\0\0\0\0\0" if the bug is still present about less than size 4 progmem variables.
and then change all the
server.send(200, "text/html", "");
to
server.send_P(200, c_xmlTextHtml, c_xmlEmpty);
The text was updated successfully, but these errors were encountered:
Basic Infos
Platform
Settings in IDE
Problem Description
Using ESP8266WebServer::send_P will cause an empty content page to be sent when the data uses content length of zero.
Sketch
Start with the CaptivePortalAdvanced example sketch.
First, make the modification as found in #5013 so it will function correctly.
Then inside the handleHttp.h file, add the following at the top
and then change all the
to
The text was updated successfully, but these errors were encountered: