diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-01-07 15:47:33 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-01-07 15:47:33 -0800 |
commit | 63c32b35cccd5f2358565f828db240200e8bffa7 (patch) | |
tree | 67344a5eac4d82aab6c2cdd6ec093bf77c31733d /lib/rainbows/ev_core.rb | |
parent | 58dbf0952b94b01d4a434fa880755f9a320c6103 (diff) | |
download | rainbows-63c32b35cccd5f2358565f828db240200e8bffa7.tar.gz |
Rack::Utils::HeaderHash is still expensive, so avoid forcing it on users since we can assume app/library authors use normally-cased HTTP headers.
Diffstat (limited to 'lib/rainbows/ev_core.rb')
-rw-r--r-- | lib/rainbows/ev_core.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |