* libs/httpd: Added Cache-Control header to LuCI
[project/luci.git] / libs / httpd / luasrc / httpd / server.lua
index e5b862032cdaae66ef8a75a05bcfbdc395a623be..7bfac68629bbe0ac7a4e69c695ad68bed6d9b6bd 100644 (file)
@@ -20,6 +20,7 @@ require("socket.http")
 require("luci.util")
 
 READ_BUFSIZE = 1024
+VERSION = 0.2
 
 
 VHost = luci.util.class()
@@ -212,6 +213,8 @@ function Server.process( self, client )
                        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"