forked from rails/rails
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make ActionDispatch::SSL compatible with Rack 3.0
Rack 3 now allows response header values to be an Array when handling multiple values. Newline encoded headers are no longer supported. This commit updates `ActionDispatch::SSL#flag_cookies_as_secure!` to be Rack-3 compliant by setting the `set-cookie` header to an Array rather than a newline-separated String if the current Rack version is 3+. Additionally, this commit adds `Rack::Lint` to the Rack app in the middleware test suite so that we can ensure all of the tests are compliant with the Rack SPEC.
- Loading branch information
1 parent
43be5c4
commit 9d840a1
Showing
3 changed files
with
74 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters