diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-06-17 12:56:55 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-06-17 12:56:55 +0000 |
commit | 6088f2b3fe5384f8f0bae1a7842ff8ed98a0f1ee (patch) | |
tree | 658b35ff87c31d85bcd0703a94a5140559ea7052 /modules/admin-full | |
parent | 2f9cbf7d055e404382ea38932c16e63f2ac9f28b (diff) |
modules/admin-full, modules/admin-mini: set appropriate mime type for luci-flash output
Diffstat (limited to 'modules/admin-full')
-rw-r--r-- | modules/admin-full/luasrc/controller/admin/system.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/admin-full/luasrc/controller/admin/system.lua b/modules/admin-full/luasrc/controller/admin/system.lua index 9f66f17d3..39fe16a7f 100644 --- a/modules/admin-full/luasrc/controller/admin/system.lua +++ b/modules/admin-full/luasrc/controller/admin/system.lua @@ -266,6 +266,9 @@ function action_upgrade() -- previous pages should arrange the stuff as required. if step == 4 then if has_platform and has_image and has_support then + -- Mimetype text/plain + luci.http.prepare_content("text/plain") + -- Now invoke sysupgrade local keepcfg = keep_avail and luci.http.formvalue("keepcfg") == "1" local fd = io.popen("/sbin/luci-flash %s %q" %{ |