summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2009-05-25 10:31:16 +0000
committerSteven Barth <steven@midlink.org>2009-05-25 10:31:16 +0000
commitd2ce28a71edaafc540d12c9ccc648e4442fc82c2 (patch)
tree5998022db769f0d8eea614bf18e7781587da0189
parent4209a47b6e48030fd37b006146c5a0e0dc922ad3 (diff)
Fix non-HEAD HTTP-Responses
-rw-r--r--libs/lucid-http/luasrc/lucid/http/server.lua2
1 files changed, 1 insertions, 1 deletions
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