lib/rainbows/http_response.rb in rainbows-0.90.1 vs lib/rainbows/http_response.rb in rainbows-0.90.2

- old
+ new

@@ -14,10 +14,11 @@ 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" }) + # avoiding blank, key-only cookies with /\n+/ + out.concat(value.split(/\n+/).map! { |v| "#{key}: #{v}\r\n" }) else out << "#{key}: #{value}\r\n" end end