http/1.1 detection
This commit is contained in:
parent
fa25902656
commit
693366bdd8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue