Merge pull request #658 from sachaw/master

Another missing header
1.2-legacy
Jm Casler 2021-01-24 18:06:14 -08:00 zatwierdzone przez GitHub
commit 0cf7aaffff
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -975,6 +975,8 @@ void handleHotspot(HTTPRequest *req, HTTPResponse *res)
// Status code is 200 OK by default.
// We want to deliver a simple HTML page, so we send a corresponding content type:
res->setHeader("Content-Type", "text/html");
res->setHeader("Access-Control-Allow-Origin", "*");
res->setHeader("Access-Control-Allow-Methods", "GET");
// res->println("<!DOCTYPE html>");
res->println("<meta http-equiv=\"refresh\" content=\"0;url=/\" />\n");