Skip to content

Commit 1ea6646

Browse files
authored
Merge pull request #3 from c-klinger/bugfix/esp-crashes-on-ui-or-admin
Possible Bugfix for #2, streaming html content from flash
2 parents 8eba0b4 + 2cae65e commit 1ea6646

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

esp8266-arduino-wifirgb/WifiRGB.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ void setup(void) {
6363

6464
// iro.js User Interface and Javascript
6565
server.on("/ui", HTTP_GET, []() {
66-
server.send(200, "text/html", WEBINTERFACE);
66+
server.send_P(200, "text/html", WEBINTERFACE);
6767
});
6868
server.on("/admin", HTTP_GET, []() {
69-
server.send(200, "text/html", WEBADMIN);
69+
server.send_P(200, "text/html", WEBADMIN);
7070
});
7171
server.on("/iro.min.js", HTTP_GET, []() {
72-
server.send(200, "application/javascript", IRO_JS);
72+
server.send_P(200, "application/javascript", IRO_JS);
7373
});
7474

7575
// REST-API

0 commit comments

Comments
 (0)