Skip to content

Implements case-insensitive header equality#1605

Merged
davidism merged 2 commits intopallets:masterfrom
markmcd:header-sensitivity
Jul 11, 2019
Merged

Implements case-insensitive header equality#1605
davidism merged 2 commits intopallets:masterfrom
markmcd:header-sensitivity

Conversation

@markmcd
Copy link
Copy Markdown
Contributor

@markmcd markmcd commented Jul 10, 2019

Currently this fails:

assert datastructures.Headers({'X-Foo': 'fu'}) == datastructures.Headers({'x-foo': 'fu'})

The Headers class otherwise respects the case insensitivity of keys, this patch just extends this to the equality check.

@markmcd

This comment has been minimized.

@davidism davidism force-pushed the header-sensitivity branch from 06a9865 to 889b1a2 Compare July 10, 2019 21:01
@davidism davidism force-pushed the header-sensitivity branch from 889b1a2 to c13eba6 Compare July 10, 2019 21:45
@davidism davidism added this to the 1.0.0 milestone Jul 10, 2019
@davidism
Copy link
Copy Markdown
Member

Needs changelog.

@markmcd
Copy link
Copy Markdown
Contributor Author

markmcd commented Jul 11, 2019

Changelog added in a new commit. I can squash these if necessary.

@davidism davidism merged commit 892545d into pallets:master Jul 11, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants