From d1ab6ec6db8289d944c9f94ec8b389470c6b8389 Mon Sep 17 00:00:00 2001 From: Shawn A Date: Mon, 28 Aug 2017 21:00:15 -0500 Subject: [PATCH] left in debug --- WiFiManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WiFiManager.cpp b/WiFiManager.cpp index 320af11..a7d63a8 100644 --- a/WiFiManager.cpp +++ b/WiFiManager.cpp @@ -820,8 +820,8 @@ void WiFiManager::handleNotFound() { * Return true in that case so the page handler do not try to handle the request again. */ boolean WiFiManager::captivePortal() { -DEBUG_WM(server->hostHeader()); - if (!isIp(server->hostHeader()) && false) { + DEBUG_WM(server->hostHeader()); + if (!isIp(server->hostHeader())) { DEBUG_WM(F("Request redirected to captive portal")); server->sendHeader("Location", String("http://") + toStringIp(server->client().localIP()), true); server->send ( 302, "text/plain", ""); // Empty content inhibits Content-length header so we have to close the socket ourselves.