1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

Root page should be of type text/html (#6776)

In order to be displayed properly by a browser the HTML should be returned as text/html.
This commit is contained in:
André Futter 2019-11-15 00:29:31 +01:00 committed by Earle F. Philhower, III
parent 95c740705e
commit 05454df164

View File

@ -38,7 +38,7 @@ const String postForms = "<html>\
void handleRoot() {
digitalWrite(led, 1);
server.send(200, "text/plain", postForms);
server.send(200, "text/html", postForms);
digitalWrite(led, 0);
}