Skip to content

Commit

Permalink
fix(cookies): Remove joining with \n
Browse files Browse the repository at this point in the history
to fix compatibility with Rack 3.

see github#514
  • Loading branch information
mscrivo committed Apr 23, 2024
1 parent 7a23cb6 commit 4003b36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/secure_headers/middleware.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def flag_cookies!(headers, config)

headers["Set-Cookie"] = cookies.map do |cookie|
SecureHeaders::Cookie.new(cookie, config).to_s
end.join("\n")
end
end
end

Expand Down

0 comments on commit 4003b36

Please sign in to comment.