projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix non-HEAD HTTP-Responses
[project/luci.git]
/
libs
/
lucid-http
/
luasrc
/
lucid
/
http
/
server.lua
diff --git
a/libs/lucid-http/luasrc/lucid/http/server.lua
b/libs/lucid-http/luasrc/lucid/http/server.lua
index
f5de4e9
..
73239da
100644
(file)
--- 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