summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-06-05 00:19:05 -0700
committerEric Wong <normalperson@yhbt.net>2009-06-05 00:19:25 -0700
commita48695449f49e6900819fed472f23408c62b5501 (patch)
treefa8ffc367a155fef3e5620191f3436572f54d1fe
parent4716aab9530cabb14448a5123865b9f79b77f40c (diff)
-rw-r--r--lib/unicorn/http_request.rb2
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