From 63c32b35cccd5f2358565f828db240200e8bffa7 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 7 Jan 2011 15:47:33 -0800 Subject: more consistent use/avoidance of HeaderHash Rack::Utils::HeaderHash is still expensive, so avoid forcing it on users since we can assume app/library authors use normally-cased HTTP headers. --- lib/rainbows/ev_core.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rainbows/ev_core.rb') diff --git a/lib/rainbows/ev_core.rb b/lib/rainbows/ev_core.rb index 66d177f..448338f 100644 --- a/lib/rainbows/ev_core.rb +++ b/lib/rainbows/ev_core.rb @@ -49,7 +49,7 @@ module Rainbows::EvCore # returns whether to enable response chunking for autochunk models def stream_response_headers(status, headers, alive) - headers = Rack::Utils::HeaderHash.new(headers) + headers = Rack::Utils::HeaderHash.new(headers) unless Hash === headers if headers.include?(Content_Length) rv = false else -- cgit v1.2.3-24-ge0c7