summaryrefslogtreecommitdiffhomepage
path: root/libs/lucid-http
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2009-05-27 19:12:58 +0000
committerSteven Barth <steven@midlink.org>2009-05-27 19:12:58 +0000
commit693366bdd8cca7227976b3d3889bb0cf4dcfe9db (patch)
tree9d7287eac09e62138afecbce99c3936f04ff87b9 /libs/lucid-http
parentfa25902656c6deaa1b1d8b8276d2c6cdf5686e5e (diff)
http/1.1 detection
Diffstat (limited to 'libs/lucid-http')
-rw-r--r--libs/lucid-http/luasrc/lucid/http/server.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/lucid-http/luasrc/lucid/http/server.lua b/libs/lucid-http/luasrc/lucid/http/server.lua
index 008fd1fc2..21a752c68 100644
--- 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