diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-01-19 16:23:54 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-01-19 16:23:54 -0800 |
commit | 1a449c8abafbb17f9e7c2d68363957c80dc1ab86 (patch) | |
tree | 3d16f855a21a09bf273caad660c28ca4797580fb /lib/rainbows/response.rb | |
parent | 9424b13255a238dfa44952ebeb07bea3acee999c (diff) | |
download | rainbows-1a449c8abafbb17f9e7c2d68363957c80dc1ab86.tar.gz |
We guarantee the Rack env will exist for the duration of the request/response cycle, so we can just tweak "rainbows.autochunk".
Diffstat (limited to 'lib/rainbows/response.rb')
-rw-r--r-- | lib/rainbows/response.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/response.rb b/lib/rainbows/response.rb index 0212cdb..2c517f8 100644 --- a/lib/rainbows/response.rb +++ b/lib/rainbows/response.rb @@ -26,7 +26,7 @@ module Rainbows::Response "Status: #{status}\r\n" \ "Connection: #{alive ? KeepAlive : Close}\r\n" headers.each do |key, value| - next if %r{\A(?:X-Rainbows-|Date\z|Connection\z)}i =~ key + next if %r{\A(?:Date\z|Connection\z)}i =~ key if value =~ /\n/ # avoiding blank, key-only cookies with /\n+/ buf << value.split(/\n+/).map! { |v| "#{key}: #{v}\r\n" }.join |