1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Do not automatically use chunked responses when hijacked

This commit is contained in:
Evan Phoenix 2015-06-10 11:21:56 -07:00
parent 0d4016a999
commit 305478e3b9

View file

@ -643,7 +643,7 @@ module Puma
if content_length
lines.append CONTENT_LENGTH_S, content_length.to_s, line_ending
chunked = false
elsif allow_chunked
elsif !response_hijack and allow_chunked
lines << TRANSFER_ENCODING_CHUNKED
chunked = true
end