demo -> index

This commit is contained in:
zogodo
2020-03-08 15:46:33 +08:00
parent 5359b2438a
commit 80b62d5cd5
3 changed files with 8 additions and 8 deletions

View File

@@ -93,10 +93,10 @@ static int HttpGetIndexPage(httpd_request_t *req)
{
OSStatus err = kNoErr;
err = httpd_send_all_header(req, HTTP_RES_200, sizeof(web_demo_html), HTTP_CONTENT_HTML_ZIP);
err = httpd_send_all_header(req, HTTP_RES_200, sizeof(web_index_html), HTTP_CONTENT_HTML_ZIP);
require_noerr_action(err, exit, http_log("ERROR: Unable to send http wifisetting headers."));
err = httpd_send_body(req->sock, web_demo_html, sizeof(web_demo_html));
err = httpd_send_body(req->sock, web_index_html, sizeof(web_index_html));
require_noerr_action(err, exit, http_log("ERROR: Unable to send http wifisetting body."));
exit:
@@ -106,10 +106,10 @@ exit:
static int HttpGetDemoPage(httpd_request_t *req)
{
OSStatus err = kNoErr;
err = httpd_send_all_header(req, HTTP_RES_200, sizeof(web_demo_html), HTTP_CONTENT_HTML_ZIP);
err = httpd_send_all_header(req, HTTP_RES_200, sizeof(web_index_html), HTTP_CONTENT_HTML_ZIP);
require_noerr_action(err, exit, http_log("ERROR: Unable to send http wifisetting headers."));
err = httpd_send_body(req->sock, web_demo_html, sizeof(web_demo_html));
err = httpd_send_body(req->sock, web_index_html, sizeof(web_index_html));
require_noerr_action(err, exit, http_log("ERROR: Unable to send http wifisetting body."));
exit:
return err;