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
Handle default ports in WSGITransport #1469
Conversation
https://www.python.org/dev/peps/pep-3333/#environ-variables > SERVER_NAME, SERVER_PORT > When HTTP_HOST is not set, these variables can be combined to determine a default. See the URL Reconstruction section below for more detail. SERVER_NAME and SERVER_PORT are required strings and must never be empty.
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.
Good catch!
Also, is there a unit test we could add in test_wsgi.py
about this?
@abersheeran I went ahead and pushed some commits for the modifications to get this PR in shape, hope you don't mind. |
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.
Thanks so much for this contribution!
We're not sure yet when 0.17.0
will be released (the team needs to circle back on that), but once merged this would at least be available for git installation.
Thank you for your quick response~ |
https://www.python.org/dev/peps/pep-3333/#environ-variables
Fixed #1468