Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bring Rack::Mock cookie parsing into SPEC (fixes rack#1629)
`#has_key?` isn't required to be supported by the object in the `headers` element of the response coming back out of the app. This replaces that call with a transmogrification into a `HeaderHash` so we can use an index as normal. The odd `hash[] || ""` construction is necessary because `HeaderHash#fetch` doesn't respect header name case insensitivity.
- Loading branch information
Showing
2 changed files
with
20 additions
and
3 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