diff options
Diffstat (limited to 'polycom_xmit/webserver.c')
-rw-r--r-- | polycom_xmit/webserver.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/polycom_xmit/webserver.c b/polycom_xmit/webserver.c index d7d6c92..2d34927 100644 --- a/polycom_xmit/webserver.c +++ b/polycom_xmit/webserver.c @@ -334,7 +334,7 @@ webserver_req (struct espconn *conn, http_state * s) 0); crash (); } - else if (os_strstr (s->url, "/upgrade.html")) + else if (!os_strcmp (s->url, "/upgrade.html")) { webserver_send_reply (conn, 200, "text/html", "<html><head></head><body>triggered upgrade</body></html>", @@ -342,10 +342,14 @@ webserver_req (struct espconn *conn, http_state * s) os_printf ("Upgrading\n"); upgrade (); } - else if (os_strstr (s->url, "/gpio.html")) + else if (!os_strcmp (s->url, "/gpio.html")) { gpio_page (conn); } + else if (!os_strcmp (s->url, "/")) + { + gpio_colour_page (conn); + } else { webserver_send_reply (conn, 404, "text/html", |