diff options
author | Steven Barth <steven@midlink.org> | 2009-05-25 10:31:16 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2009-05-25 10:31:16 +0000 |
commit | d2ce28a71edaafc540d12c9ccc648e4442fc82c2 (patch) | |
tree | 5998022db769f0d8eea614bf18e7781587da0189 /libs/lucid-http/luasrc/lucid | |
parent | 4209a47b6e48030fd37b006146c5a0e0dc922ad3 (diff) |
Fix non-HEAD HTTP-Responses
Diffstat (limited to 'libs/lucid-http/luasrc/lucid')
-rw-r--r-- | libs/lucid-http/luasrc/lucid/http/server.lua | 2 |
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 |