From 6551f5c1395a4e5167c06e9f014e5cb0436804a9 Mon Sep 17 00:00:00 2001 From: Paul Spooren Date: Fri, 16 Mar 2018 18:52:48 +0100 Subject: [PATCH] luci-app-attendedsysupgrade: fixup missing package Signed-off-by: Paul Spooren --- .../root/www/luci-static/resources/attendedsysupgrade.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/luci-app-attendedsysupgrade/root/www/luci-static/resources/attendedsysupgrade.js b/applications/luci-app-attendedsysupgrade/root/www/luci-static/resources/attendedsysupgrade.js index 604074ad3..60f586ded 100644 --- a/applications/luci-app-attendedsysupgrade/root/www/luci-static/resources/attendedsysupgrade.js +++ b/applications/luci-app-attendedsysupgrade/root/www/luci-static/resources/attendedsysupgrade.js @@ -373,7 +373,7 @@ function server_request(request_dict, path, callback) { error_box("No firmware created due to image size. Try again with less packages selected.") } else if (request.status === 422) { - var package_missing = response.getResponseHeader("X-Unknown-Package"); + var package_missing = request.getResponseHeader("X-Unknown-Package"); error_box("Unknown package in request: " + package_missing + "") } else if (request.status === 500) { request_json = JSON.parse(request_text) -- 2.25.1