From 13df06e546024744cfc6201a0f349a8982a360c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=B0=B8=E7=A6=8F?= Date: Thu, 20 Mar 2025 10:39:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=92=A4=E9=94=80https=E5=85=B3=E9=94=AE?= =?UTF-8?q?=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TC1/http_server/app_httpd.c | 2 +- TC1/http_server/web/index.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/TC1/http_server/app_httpd.c b/TC1/http_server/app_httpd.c index 3159daa..d6ffab7 100644 --- a/TC1/http_server/app_httpd.c +++ b/TC1/http_server/app_httpd.c @@ -583,7 +583,7 @@ const struct httpd_wsgi_call g_app_handlers[] = { {"/mqtt/report/freq", HTTPD_HDR_DEFORT, 0, HttpGetMqttReportFreq, HttpSetMqttReportFreq, NULL, NULL}, {"/log", HTTPD_HDR_DEFORT, 0, HttpGetLog, NULL, NULL, NULL}, {"/task", HTTPD_HDR_DEFORT, APP_HTTP_FLAGS_NO_EXACT_MATCH, HttpGetTasks, HttpAddTask, NULL, HttpDelTask}, - {"https://ota", HTTPD_HDR_DEFORT, 0, Otastatus, OtaStart, NULL, NULL}, + {"/ota", HTTPD_HDR_DEFORT, 0, Otastatus, OtaStart, NULL, NULL}, {"/led", HTTPD_HDR_DEFORT, 0, LedStatus, LedSetEnabled, NULL, NULL}, {"/socketAll", HTTPD_HDR_DEFORT, 0, NULL, TotalSocketSetEnabled, NULL, NULL}, {"/socketNames", HTTPD_HDR_DEFORT, 0, NULL, HttpSetSocketName, NULL, NULL}, diff --git a/TC1/http_server/web/index.html b/TC1/http_server/web/index.html index 53e9114..3dadb5a 100644 --- a/TC1/http_server/web/index.html +++ b/TC1/http_server/web/index.html @@ -1236,7 +1236,7 @@ var protocol = window.location.protocol; var baseUrl = protocol+"//"+window.location.host; - HttpPost("https://ota", function (re) { + HttpPost("/ota", function (re) { OtaStatus(); }, ota_url); } @@ -1248,7 +1248,7 @@ var protocol = window.location.protocol; var baseUrl = protocol+"//"+window.location.host; - HttpGet("https://ota", function (re) { + HttpGet("/ota", function (re) { var percent = parseInt(re); //console.log(re + " " + parseInt(re)); ota_status.MaterialProgress.setProgress(percent);