From: Paul Spooren Date: Fri, 4 Aug 2017 16:09:43 +0000 (+0200) Subject: luci-app-attendedsysupgrade: remove leading slash X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=a22f050861ed8addc6b5fdaa7b3a3caf4cb379e3;hp=-c luci-app-attendedsysupgrade: remove leading slash the slash leads to // redirecting to /. The redirecting causes problems with CORS [1]. [1]: http://enable-cors.org/ Signed-off-by: Paul Spooren --- a22f050861ed8addc6b5fdaa7b3a3caf4cb379e3 diff --git a/applications/luci-app-attendedsysupgrade/luasrc/view/attendedsysupgrade.htm b/applications/luci-app-attendedsysupgrade/luasrc/view/attendedsysupgrade.htm index 8bcec3b49..4f8bf7cc9 100644 --- a/applications/luci-app-attendedsysupgrade/luasrc/view/attendedsysupgrade.htm +++ b/applications/luci-app-attendedsysupgrade/luasrc/view/attendedsysupgrade.htm @@ -178,7 +178,7 @@ function image_request() { request_dict = {} request_dict.version = latest_version; request_dict.board = data.board_name - server_request(request_dict, "/image-request", image_request_handler) + server_request(request_dict, "image-request", image_request_handler) } function image_request_handler(response) {