Permalink
Browse files

add each response header separately

otherwise multiple cookies were set incorrectly
  • Loading branch information...
rsim committed Mar 2, 2011
1 parent e611bc6 commit daab1d0b329dba4bb47a707e0d2adb0d5a2f8725
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/kirk/server/handler.rb
@@ -122,7 +122,9 @@ def handle(target, base_request, request, response)
when CONTENT_LENGTH_RESP
response.set_content_length(value.to_i)
else
- response.set_header(header, value)
+ value.split("\n").each do |v|
+ response.add_header(header, v)
+ end
end
end

0 comments on commit daab1d0

Please sign in to comment.