From 693366bdd8cca7227976b3d3889bb0cf4dcfe9db Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Wed, 27 May 2009 19:12:58 +0000 Subject: [PATCH] http/1.1 detection --- libs/lucid-http/luasrc/lucid/http/server.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.25.1