Handle default ports in WSGITransport (#1469)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
* Maybe port is `None` 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. * Add unit test * Compute default port
authored by Aber · committed by GitHub · parent d964343 · Browse files · 2 files+30 added−0 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Trailers
- Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
Diff stats
2 files+30 added−0 removed
- tests:+27 added−0 removed
- other:+3 added−0 removed