Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add each response header separately

otherwise multiple cookies were set incorrectly
  • Loading branch information...
commit daab1d0b329dba4bb47a707e0d2adb0d5a2f8725 1 parent e611bc6
@rsim rsim authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/kirk/server/handler.rb
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.