* libs/httpd: Added Server-Header
headers[data1] = data2
end
end
+<<<<<<< HEAD:libs/httpd/luasrc/httpd/handler/luci.lua
+=======
+
+
+>>>>>>> * libs/httpd: Added Cache-Control header to LuCI:libs/httpd/luasrc/httpd/handler/luci.lua
local function iter()
local res, id, data = coroutine.resume(x)
if not res then
headers["Expires"] = luci.http.protocol.date.to_http( os.time() )
headers["Date"] = headers["Expires"]
+ headers["Cache-Control"] = "no-cache"
return Response(status, headers), iter
end
require("luci.util")
READ_BUFSIZE = 1024
+VERSION = 0.2
VHost = luci.util.class()
tostring(response.status) .. " " ..
luci.http.protocol.statusmsg[response.status] .. "\r\n"
+ header = header .. "Server: LuCI HTTPd/" .. tostring(VERSION) .. "\r\n"
+
for k,v in pairs(response.headers) do
header = header .. k .. ": " .. v .. "\r\n"