From d2ce28a71edaafc540d12c9ccc648e4442fc82c2 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Mon, 25 May 2009 10:31:16 +0000 Subject: Fix non-HEAD HTTP-Responses --- libs/lucid-http/luasrc/lucid/http/server.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/lucid-http/luasrc/lucid/http/server.lua') diff --git a/libs/lucid-http/luasrc/lucid/http/server.lua b/libs/lucid-http/luasrc/lucid/http/server.lua index f5de4e9a11..73239da1b2 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 -- cgit v1.2.3