about summary refs log tree commit homepage
path: root/lib/unicorn.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/unicorn.rb')
-rw-r--r--lib/unicorn.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/unicorn.rb b/lib/unicorn.rb
index b185b25..88391f6 100644
--- a/lib/unicorn.rb
+++ b/lib/unicorn.rb
@@ -447,8 +447,7 @@ module Unicorn
         env.delete(Const::HTTP_EXPECT)
         response = app.call(env)
       end
-
-      HttpResponse.write(client, response)
+      HttpResponse.write(client, response, HttpRequest::PARSER.headers?)
     # if we get any error, try to write something back to the client
     # assuming we haven't closed the socket, but don't get hung up
     # if the socket is already closed or broken.  We'll always ensure