diff options
Diffstat (limited to 'lib/yahns/proxy_http_response.rb')
-rw-r--r-- | lib/yahns/proxy_http_response.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/yahns/proxy_http_response.rb b/lib/yahns/proxy_http_response.rb index 74f5ce5..1776291 100644 --- a/lib/yahns/proxy_http_response.rb +++ b/lib/yahns/proxy_http_response.rb @@ -120,7 +120,7 @@ module Yahns::HttpResponse # :nodoc: # chunk the response ourselves if the client supports it, # but the backend does not terminate properly - if alive && ! term + if alive && ! term && have_body if env['HTTP_VERSION'] == 'HTTP/1.1'.freeze res << "Transfer-Encoding: chunked\r\n".freeze else # we can't persist HTTP/1.0 and HTTP/0.9 w/o Content-Length |