Fix non-HEAD HTTP-Responses
[project/luci.git] / libs / lucid-http / luasrc / lucid / http / server.lua
index f5de4e9..73239da 100644 (file)
@@ -460,7 +460,7 @@ function Server.process(self, client, env)
                                        close = true
                                end
                        end
-               elseif message.request_method ~= "head" then
+               elseif message.env.REQUEST_METHOD ~= "HEAD" then
                        headers["Content-Length"] = 0
                end