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