summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/unicorn/http_request.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/unicorn/http_request.rb b/lib/unicorn/http_request.rb
index 6e909b6..b06e3ae 100644
--- a/lib/unicorn/http_request.rb
+++ b/lib/unicorn/http_request.rb
@@ -99,6 +99,7 @@ module Unicorn
         @body = StringIO.new(http_body)
       else # huge body, put it in a tempfile
         @body = Tempfile.new(Const::UNICORN_TMP_BASE)
+        @body.binmode
         @body.sync = true
         @body.syswrite(http_body)
       end