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:
parent
95c740705e
commit
05454df164
@ -38,7 +38,7 @@ const String postForms = "<html>\
|
|||||||
|
|
||||||
void handleRoot() {
|
void handleRoot() {
|
||||||
digitalWrite(led, 1);
|
digitalWrite(led, 1);
|
||||||
server.send(200, "text/plain", postForms);
|
server.send(200, "text/html", postForms);
|
||||||
digitalWrite(led, 0);
|
digitalWrite(led, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user