-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Response doesn't deal well with CIMultiDictProxy headers #3207
Comments
This might need to go to multidict project itself. |
it seems to me that |
Well... Yeah. That's why it's called "proxy" :) |
I think a simple fix would be here: elif not isinstance(headers, (CIMultiDict, CIMultiDictProxy)):
headers = CIMultiDict(headers) to elif not isinstance(headers, CIMultiDict):
headers = CIMultiDict(headers) |
Feel free to create a PR and invite @asvetlov to give more feedback on it. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a [new issue] for related bugs. |
Long story short
Example badness:
This is useful e.g. when an aiohttp app is acting like a proxy and is relaying errors from backends.
Expected behaviour
same as when using CIMultiDict:
Actual behaviour
see above
Steps to reproduce
Your environment
AIOHTTP 3.3.2
python3.7
The text was updated successfully, but these errors were encountered: