Skip to content

Commit 05454df

Browse files
fttrearlephilhower
authored andcommitted
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.
1 parent 95c7407 commit 05454df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: libraries/ESP8266WebServer/examples/PostServer/PostServer.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const String postForms = "<html>\
3838

3939
void handleRoot() {
4040
digitalWrite(led, 1);
41-
server.send(200, "text/plain", postForms);
41+
server.send(200, "text/html", postForms);
4242
digitalWrite(led, 0);
4343
}
4444

0 commit comments

Comments
 (0)