Fix non-HEAD HTTP-Responses

This commit is contained in:
Steven Barth 2009-05-25 10:31:16 +00:00
parent 4209a47b6e
commit d2ce28a71e

View file

@ -460,7 +460,7 @@ function Server.process(self, client, env)
close = true close = true
end end
end end
elseif message.request_method ~= "head" then elseif message.env.REQUEST_METHOD ~= "HEAD" then
headers["Content-Length"] = 0 headers["Content-Length"] = 0
end end