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 f5de4e9a11831bcc9baea567c96ff250a5365387..73239da1b2fd0cae3e6e86a033969e93855ce8f5 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