diff options
author | c-bata <c-bata@users.noreply.github.com> | 2023-10-29 04:56:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-29 04:56:15 (GMT) |
commit | 8c47ada2de6b62a82053c484a5502688e200c14d (patch) | |
tree | 57629067a5cb50cc4f771393aa44a11ef01d8937 /Lib/wsgiref | |
parent | 66bea2555dc7b3dd18282cc699fe9a22dea50de3 (diff) | |
download | cpython-8c47ada2de6b62a82053c484a5502688e200c14d.zip cpython-8c47ada2de6b62a82053c484a5502688e200c14d.tar.gz cpython-8c47ada2de6b62a82053c484a5502688e200c14d.tar.bz2 |
gh-66425: Remove the unreachable code to set `REMOTE_HOST` header (gh-111441)
Diffstat (limited to 'Lib/wsgiref')
-rw-r--r-- | Lib/wsgiref/simple_server.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/wsgiref/simple_server.py b/Lib/wsgiref/simple_server.py index 93d01a8..a0f2397 100644 --- a/Lib/wsgiref/simple_server.py +++ b/Lib/wsgiref/simple_server.py @@ -84,10 +84,6 @@ class WSGIRequestHandler(BaseHTTPRequestHandler): env['PATH_INFO'] = urllib.parse.unquote(path, 'iso-8859-1') env['QUERY_STRING'] = query - - host = self.address_string() - if host != self.client_address[0]: - env['REMOTE_HOST'] = host env['REMOTE_ADDR'] = self.client_address[0] if self.headers.get('content-type') is None: |