Skip to content

Fix return type of werkzeug's ProxyFix#3320

Merged
srittau merged 2 commits intopython:masterfrom
lalinsky:proxyfix-return-type
Oct 8, 2019
Merged

Fix return type of werkzeug's ProxyFix#3320
srittau merged 2 commits intopython:masterfrom
lalinsky:proxyfix-return-type

Conversation

@lalinsky
Copy link
Contributor

@lalinsky lalinsky commented Oct 8, 2019

It returns List[bytes], like all WSGI middlewares.

It returns `List[bytes]`, like all WSGI middlewares.
Copy link
Collaborator

@srittau srittau left a comment

Choose a reason for hiding this comment

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

Thanks for catching this, but it can return any Iterable[bytes], not just lists, per PEP 3333 and the definition of WSGIApplication.

@lalinsky
Copy link
Contributor Author

lalinsky commented Oct 8, 2019

Fixed

@srittau srittau merged commit a6f146e into python:master Oct 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants