about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-10-18 09:35:59 -0700
committerEric Wong <normalperson@yhbt.net>2009-10-18 15:58:49 -0700
commit1a1335fe5b1894848b48a233c9f6a80634329b40 (patch)
tree2ec19f93fe987d9fe1d098564bc4a7ef91aae08c
parent1c0dab453688e8bfc9f21656e9b89b88fb3cc1d3 (diff)
downloadrainbows-1a1335fe5b1894848b48a233c9f6a80634329b40.tar.gz
We'll be using some custom headers to craft responses
-rw-r--r--lib/rainbows/http_response.rb1
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" })