Skip to content

Commit

Permalink
Split multiple header values into separate servlet calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Zell committed Oct 31, 2011
1 parent 8c11d87 commit ca7baab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/fishwife/rack_servlet.rb
Expand Up @@ -205,7 +205,8 @@ def rack_to_servlet(rack_response, response)
response.setContentType(content_type) if content_type

# Add all the result headers.
headers.each { |h, v| response.addHeader(h, v) }
headers.each { |h, v| v.split("\n").each { |val|
response.addHeader(h, val) } }
end

# How else would we write output?
Expand Down

0 comments on commit ca7baab

Please sign in to comment.