From b0013b043a15d77d810d5965157766c1af364db2 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 9 Jun 2009 16:22:55 -0700 Subject: Avoid duplicating the "Z" constant Trying not to repeat ourselves. Unfortunately, Ruby 1.9 forces us to actually care about encodings of arbitrary byte sequences. --- lib/unicorn/tee_input.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/unicorn/tee_input.rb') diff --git a/lib/unicorn/tee_input.rb b/lib/unicorn/tee_input.rb index a1d3190..9c4dda2 100644 --- a/lib/unicorn/tee_input.rb +++ b/lib/unicorn/tee_input.rb @@ -14,8 +14,6 @@ require 'tempfile' module Unicorn class TeeInput - Z = '' - Z.force_encoding(Encoding::BINARY) if Z.respond_to?(:force_encoding) def initialize @rd = @wr = @size = @input = nil -- cgit v1.2.3-24-ge0c7