From a48695449f49e6900819fed472f23408c62b5501 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 5 Jun 2009 00:19:05 -0700 Subject: http_request: fix typo for 1.9 --- lib/unicorn/http_request.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-24-ge0c7