Skip to content

Add union operators to MutableHeaders - #1240

Merged
lovelydinosaur merged 6 commits into
Kludex:masterfrom
manlix:headers_merge
Feb 16, 2022
Merged

lovelydinosaur merged 6 commits into
Kludex:masterfrom
manlix:headers_merge

Conversation

@manlix

@manlix manlix commented Jul 6, 2021

Copy link
Copy Markdown
Contributor

Fix for issue #1239

Edit by @Kludex: Closes #1239

Comment thread starlette/datastructures.py Outdated
Kludex
Kludex previously requested changes Jan 9, 2022
Comment thread starlette/datastructures.py Outdated
@Kludex

Kludex commented Jan 9, 2022

Copy link
Copy Markdown
Owner

@manlix Are you still interested in this PR? If so, would you mind rebasing and checking my comment?

@manlix
manlix requested a review from Kludex January 9, 2022 22:11
@manlix

manlix commented Jan 9, 2022

Copy link
Copy Markdown
Contributor Author

@Kludex Thank you for your suggest. PR has been updated + new tests bundle.

@adriangb adriangb added the feature New feature or request label Feb 2, 2022
Comment thread tests/test_datastructures.py Outdated
Comment thread tests/test_datastructures.py Outdated
Comment thread starlette/datastructures.py Outdated
Comment thread starlette/datastructures.py Outdated
Comment thread tests/test_datastructures.py Outdated
Comment thread tests/test_datastructures.py Outdated
* Use `TypeError`, not `NotImplemented`.
* Add `# type: ignore` to deliberate incorrect usage of types in tests.
Comment thread starlette/datastructures.py Outdated
Comment thread starlette/datastructures.py Outdated

@lovelydinosaur lovelydinosaur left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

馃憤 - Great thanks!
Made some minor tweaks. (TypeError, not NotImplemented)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to merge MutableHeaders with dict

5 participants