Fix non-HEAD HTTP-Responses
This commit is contained in:
parent
4209a47b6e
commit
d2ce28a71e
1 changed files with 1 additions and 1 deletions
|
@ -460,7 +460,7 @@ function Server.process(self, client, env)
|
||||||
close = true
|
close = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
elseif message.request_method ~= "head" then
|
elseif message.env.REQUEST_METHOD ~= "HEAD" then
|
||||||
headers["Content-Length"] = 0
|
headers["Content-Length"] = 0
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue