From 305478e3b920681b359e82b022a415853d15d258 Mon Sep 17 00:00:00 2001 From: Evan Phoenix Date: Wed, 10 Jun 2015 11:21:56 -0700 Subject: [PATCH] Do not automatically use chunked responses when hijacked --- lib/puma/server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puma/server.rb b/lib/puma/server.rb index aa5f5fe3..1a16f069 100644 --- a/lib/puma/server.rb +++ b/lib/puma/server.rb @@ -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