luci-app-attendedsysupgrade: remove leading slash 1279/head
authorPaul Spooren <paul@spooren.de>
Fri, 4 Aug 2017 16:09:43 +0000 (18:09 +0200)
committerPaul Spooren <paul@spooren.de>
Fri, 4 Aug 2017 16:09:43 +0000 (18:09 +0200)
the slash leads to // redirecting to /. The redirecting causes problems
with CORS [1].

[1]: http://enable-cors.org/

Signed-off-by: Paul Spooren <paul@spooren.de>
applications/luci-app-attendedsysupgrade/luasrc/view/attendedsysupgrade.htm

index 8bcec3b49334e581494e3c3f425ed570eca96a2a..4f8bf7cc9a58da7999e600a53f05cd4fbf3badd2 100644 (file)
@@ -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) {