diff options
-rw-r--r-- | lib/unicorn/http_request.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unicorn/http_request.rb b/lib/unicorn/http_request.rb index 24f8247..061a6ab 100644 --- a/lib/unicorn/http_request.rb +++ b/lib/unicorn/http_request.rb @@ -30,7 +30,7 @@ module Unicorn # Optimize for the common case where there's no request body # (GET/HEAD) requests. Z = '' - Z.force_encoding(Encoding::Binary) if Z.respond_to?(:force_encoding) + Z.force_encoding(Encoding::BINARY) if Z.respond_to?(:force_encoding) NULL_IO = StringIO.new(Z) LOCALHOST = '127.0.0.1'.freeze |