-
-
Notifications
You must be signed in to change notification settings - Fork 953
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make sure MutableHeaders._list is actually a list #1917
Conversation
starlette/datastructures.py
Outdated
scope: typing.Optional[typing.Mapping[str, typing.Any]] = None, | ||
) -> None: | ||
super().__init__(headers, raw, scope) | ||
self._list = list(self._list) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think doing this (line 595) in the parent class is good enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also a test case covering the issue is wanted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feel free to update the branch, I’m on my phone and AFK the rest of the day
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same thing. Let's postpone it till morning.
Looks like the test revealed a very real issue: we assume that |
thank you! this was the problem I was alluding to in #1909 - this definitely fixes it. 💯 |
Fixed #1909