-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
wsgiref doesn't appear to ever set REMOTE_HOST in the environ #66425
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
Comments
Based on a reading of the code: https://github.com/python/cpython/blob/master/Lib/wsgiref/simple_server.py#L88-L90 is where REMOTE_HOST is set. However, |
I didn't understand the issue. WSGIRequestHandler can be subclassed and address_string method may return something else. |
… from wsgiref module
Merge the PR, Even if someone overrides WSGIRequestHandler there is the documentation that the user should care about: https://docs.python.org/3/library/wsgiref.html?highlight=wsgirequesthandler#wsgiref.simple_server.WSGIRequestHandler |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
Linked PRs
REMOTE_HOST
header #111441The text was updated successfully, but these errors were encountered: