message: fix for - Setting Content-length explicitly
diff: @@ -394,6 +394,7 @@ void WiFiManager::handleRoot() {
  page += FPSTR(HTTP_PORTAL_OPTIONS);
  page += FPSTR(HTTP_END);
  + server->sendHeader("Content-Length", String(page.length()));
  server->send(200, "text/html", page);
  }
  @@ -547,6 +548,7 @@ void WiFiManager::handleWifi(boolean scan) {
  page += FPSTR(HTTP_END);
  + server->sendHeader("Content-Length", String(page.length()));
  server->send(200, "text/html", page);
  @@ -604,6 +606,7 @@ void WiFiManager::handleWifiSave() {
  page += FPSTR(HTTP_SAVED);
  page += FPSTR(HTTP_END);
  + server->sendHeader("Content-Length", String(page.length()));
  server->send(200, "text/html", page);
  DEBUG_WM(F("Sent wifi save page"));
  @@ -646,6 +649,7 @@ void WiFiManager::handleInfo() {
  page += F("</dl>");
  page += FPSTR(HTTP_END);
  + server->sendHeader("Content-Length", String(page.length()));
  server->send(200, "text/html", page);
  DEBUG_WM(F("Sent info page"));
  @@ -663,6 +667,8 @@ void WiFiManager::handleReset() {
  page += FPSTR(HTTP_HEAD_END);
  page += F("Module will reset in a few seconds.");
  page += FPSTR(HTTP_END);
  +
  + server->sendHeader("Content-Length", String(page.length()));
  server->send(200, "text/html", page);
  DEBUG_WM(F("Sent reset page"));
  @@ -671,17 +677,6 @@ void WiFiManager::handleReset() {
  delay(2000);
  }
  -
  -
  -//removed as mentioned here https://github.com/tzapu/WiFiManager/issues/114
  -/*void WiFiManager::handle204() {
  - DEBUG_WM(F("204 No Response"));
  - server->sendHeader("Cache-Control", "no-cache, no-store, must-revalidate");
  - server->sendHeader("Pragma", "no-cache");
  - server->sendHeader("Expires", "-1");
  - server->send ( 204, "text/plain", "");
  -}*/
  -
  void WiFiManager::handleNotFound() {
  if (captivePortal()) { // If captive portal redirect instead of displaying the error page.
  return;
  @@ -701,6 +696,7 @@ void WiFiManager::handleNotFound() {
  server->sendHeader("Cache-Control", "no-cache, no-store, must-revalidate");
  server->sendHeader("Pragma", "no-cache");
  server->sendHeader("Expires", "-1");
  + server->sendHeader("Content-Length", String(message.length()));
  server->send ( 404, "text/plain", message );
  }
  