X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=libs%2Flucid-http%2Fluasrc%2Flucid%2Fhttp%2Fserver.lua;fp=libs%2Flucid-http%2Fluasrc%2Flucid%2Fhttp%2Fserver.lua;h=21a752c68b8106b285cdcb14139d9220bc40900b;hp=008fd1fc2d84006e4e43a1078c8071c3b7dee54f;hb=693366bdd8cca7227976b3d3889bb0cf4dcfe9db;hpb=fa25902656c6deaa1b1d8b8276d2c6cdf5686e5e 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