From bb9abf2dcaa54c4e3c53ecac5a97f1e2802f67d2 Mon Sep 17 00:00:00 2001 From: Jm Casler Date: Sat, 12 Dec 2020 21:42:32 -0800 Subject: [PATCH] #560 Forgot to switch back to application/json --- src/meshwifi/meshhttp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/meshwifi/meshhttp.cpp b/src/meshwifi/meshhttp.cpp index 0c8540344..d0940d06b 100644 --- a/src/meshwifi/meshhttp.cpp +++ b/src/meshwifi/meshhttp.cpp @@ -912,8 +912,8 @@ void handleRestart(HTTPRequest *req, HTTPResponse *res) void handleScanNetworks(HTTPRequest *req, HTTPResponse *res) { - // res->setHeader("Content-Type", "application/json"); - res->setHeader("Content-Type", "text/html"); + res->setHeader("Content-Type", "application/json"); + // res->setHeader("Content-Type", "text/html"); int n = WiFi.scanNetworks(); res->println("{");