Skip to content

Fix return type of werkzeug's ProxyFix - #3320

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

srittau merged 2 commits into
python:masterfrom
lalinsky:proxyfix-return-type

Conversation

@lalinsky

@lalinsky lalinsky commented Oct 8, 2019

Copy link
Copy Markdown
Contributor

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

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

@srittau srittau left a comment

Copy link
Copy Markdown
Collaborator

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

lalinsky commented Oct 8, 2019

Copy link
Copy Markdown
Contributor Author

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