#560 Forgot to switch back to application/json

This commit is contained in:
Jm Casler 2020-12-12 21:42:32 -08:00
parent 5249608dce
commit bb9abf2dca

View File

@ -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("{");