projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4209a47
)
Fix non-HEAD HTTP-Responses
author
Steven Barth
<steven@midlink.org>
Mon, 25 May 2009 10:31:16 +0000
(10:31 +0000)
committer
Steven Barth
<steven@midlink.org>
Mon, 25 May 2009 10:31:16 +0000
(10:31 +0000)
libs/lucid-http/luasrc/lucid/http/server.lua
patch
|
blob
|
history
diff --git
a/libs/lucid-http/luasrc/lucid/http/server.lua
b/libs/lucid-http/luasrc/lucid/http/server.lua
index f5de4e9a11831bcc9baea567c96ff250a5365387..73239da1b2fd0cae3e6e86a033969e93855ce8f5 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