OSDN Git Service

luci-app-unblockneteasemusic: bump to 2.13
[immortalwrt/luci.git] / applications / luci-app-unblockneteasemusic / luasrc / model / cbi / unblockneteasemusic / unblockneteasemusic.lua
index 2847a7c..3a17798 100644 (file)
@@ -95,13 +95,13 @@ o.write = function()
 end
 
 function act_download_cert()
-       local t,e
-       t=nixio.open("/usr/share/unblockneteasemusic/core/ca.crt","r")
-       luci.http.header('Content-Disposition','attachment; filename="ca.crt"')
+       local t, e
+       t = nixio.open("/usr/share/unblockneteasemusic/core/ca.crt","r")
+       luci.http.header('Content-Disposition', 'attachment; filename="ca.crt"')
        luci.http.prepare_content("application/octet-stream")
        while true do
-               e=t:read(nixio.const.buffersize)
-               if(not e)or(#e==0)then
+               e = t:read(nixio.const.buffersize)
+               if (not e) or (#e == 0) then
                        break
                else
                        luci.http.write(e)