summaryrefslogtreecommitdiffhomepage
path: root/libs/lucid-http/luasrc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/lucid-http/luasrc')
-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 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