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:
fa25902
)
http/1.1 detection
author
Steven Barth
<steven@midlink.org>
Wed, 27 May 2009 19:12:58 +0000
(19:12 +0000)
committer
Steven Barth
<steven@midlink.org>
Wed, 27 May 2009 19:12:58 +0000
(19:12 +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 008fd1fc2d84006e4e43a1078c8071c3b7dee54f..21a752c68b8106b285cdcb14139d9220bc40900b 100644
(file)
--- a/
libs/lucid-http/luasrc/lucid/http/server.lua
+++ b/
libs/lucid-http/luasrc/lucid/http/server.lua
@@
-453,7
+453,7
@@
function Server.process(self, client, env)
end
end
if not headers["Content-Length"] then
- if message.
http_version == 1.1
then
+ if message.
env.SERVER_PROTOCOL == "HTTP/1.1"
then
headers["Transfer-Encoding"] = "chunked"
sinkout = chunksink(client)
else