diff options
author | Steven Barth <steven@midlink.org> | 2009-05-27 19:12:58 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2009-05-27 19:12:58 +0000 |
commit | 693366bdd8cca7227976b3d3889bb0cf4dcfe9db (patch) | |
tree | 9d7287eac09e62138afecbce99c3936f04ff87b9 /libs/lucid-http | |
parent | fa25902656c6deaa1b1d8b8276d2c6cdf5686e5e (diff) |
http/1.1 detection
Diffstat (limited to 'libs/lucid-http')
-rw-r--r-- | libs/lucid-http/luasrc/lucid/http/server.lua | 2 |
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 |