about summary refs log tree commit homepage
path: root/lib/unicorn/http_request.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-06-09 16:22:55 -0700
committerEric Wong <normalperson@yhbt.net>2009-06-09 17:53:24 -0700
commitb0013b043a15d77d810d5965157766c1af364db2 (patch)
tree1db783db1387facad6fbdba7e7ea1479b5789898 /lib/unicorn/http_request.rb
parentf3e1cd9b7728b85f346d5588268066c9ef9d3cf3 (diff)
downloadunicorn-b0013b043a15d77d810d5965157766c1af364db2.tar.gz
Trying not to repeat ourselves.  Unfortunately, Ruby 1.9 forces
us to actually care about encodings of arbitrary byte sequences.
Diffstat (limited to 'lib/unicorn/http_request.rb')
-rw-r--r--lib/unicorn/http_request.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/unicorn/http_request.rb b/lib/unicorn/http_request.rb
index 025b125..58a5554 100644
--- a/lib/unicorn/http_request.rb
+++ b/lib/unicorn/http_request.rb
@@ -26,8 +26,6 @@ module Unicorn
       "SERVER_SOFTWARE" => "Unicorn #{Const::UNICORN_VERSION}".freeze
     }
 
-    Z = ''
-    Z.force_encoding(Encoding::BINARY) if Z.respond_to?(:force_encoding)
     NULL_IO = StringIO.new(Z)
     TEE = TeeInput.new
     DECHUNKER = ChunkedReader.new