diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-01-07 10:20:24 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-01-07 10:20:24 -0800 |
commit | 360ba90a9a50b5aabd1c65d51034c7ebe77e36ef (patch) | |
tree | 7b55d457bc0efc79a2b6f4fd71c9ebb603c88046 /lib/rainbows/response.rb | |
parent | c162bd4d620bc1421f104d9d0dfba21fb9b43068 (diff) | |
download | rainbows-360ba90a9a50b5aabd1c65d51034c7ebe77e36ef.tar.gz |
Rack::Lint already stops apps from using it. If a developer insists on it, then users who inspect their HTTP headers can point and laugh at them for not using Rack::Lint!
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 11f270f..0212cdb 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|Status\z|Connection\z)}i =~ key + next if %r{\A(?:X-Rainbows-|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 |