Fix non-HEAD HTTP-Responses
authorSteven Barth <steven@midlink.org>
Mon, 25 May 2009 10:31:16 +0000 (10:31 +0000)
committerSteven Barth <steven@midlink.org>
Mon, 25 May 2009 10:31:16 +0000 (10:31 +0000)
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