diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-10-18 09:35:59 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-10-18 15:58:49 -0700 |
commit | 1a1335fe5b1894848b48a233c9f6a80634329b40 (patch) | |
tree | 2ec19f93fe987d9fe1d098564bc4a7ef91aae08c /lib/rainbows/http_response.rb | |
parent | 1c0dab453688e8bfc9f21656e9b89b88fb3cc1d3 (diff) | |
download | rainbows-1a1335fe5b1894848b48a233c9f6a80634329b40.tar.gz |
We'll be using some custom headers to craft responses
Diffstat (limited to 'lib/rainbows/http_response.rb')
-rw-r--r-- | lib/rainbows/http_response.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rainbows/http_response.rb b/lib/rainbows/http_response.rb index ebaa4e7..6617666 100644 --- a/lib/rainbows/http_response.rb +++ b/lib/rainbows/http_response.rb @@ -13,6 +13,7 @@ module Rainbows status = CODES[status.to_i] || status headers.each do |key, value| + next if %r{\AX-Rainbows-}i =~ key next if SKIP.include?(key.downcase) if value =~ /\n/ out.concat(value.split(/\n/).map! { |v| "#{key}: #{v}\r\n" }) |