File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
libraries/DNSServer/examples/CaptivePortalAdvanced Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ void handleRoot() {
66 server.sendHeader (" Cache-Control" , " no-cache, no-store, must-revalidate" );
77 server.sendHeader (" Pragma" , " no-cache" );
88 server.sendHeader (" Expires" , " -1" );
9+ server.setContentLength (CONTENT_LENGTH_UNKNOWN);
910 server.send (200 , " text/html" , " " ); // Empty content inhibits Content-length header so we have to close the socket ourselves.
1011 server.sendContent (
1112 " <html><head></head><body>"
@@ -40,6 +41,7 @@ void handleWifi() {
4041 server.sendHeader (" Cache-Control" , " no-cache, no-store, must-revalidate" );
4142 server.sendHeader (" Pragma" , " no-cache" );
4243 server.sendHeader (" Expires" , " -1" );
44+ server.setContentLength (CONTENT_LENGTH_UNKNOWN);
4345 server.send (200 , " text/html" , " " ); // Empty content inhibits Content-length header so we have to close the socket ourselves.
4446 server.sendContent (
4547 " <html><head></head><body>"
You can’t perform that action at this time.
0 commit comments