From: Steven Barth Date: Mon, 25 May 2009 10:31:16 +0000 (+0000) Subject: Fix non-HEAD HTTP-Responses X-Git-Tag: 0.9.0~381 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d2ce28a71edaafc540d12c9ccc648e4442fc82c2;p=oweals%2Fluci.git Fix non-HEAD HTTP-Responses --- diff --git a/libs/lucid-http/luasrc/lucid/http/server.lua b/libs/lucid-http/luasrc/lucid/http/server.lua index f5de4e9a1..73239da1b 100644 --- a/libs/lucid-http/luasrc/lucid/http/server.lua +++ b/libs/lucid-http/luasrc/lucid/http/server.lua @@ -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