New submission from Alex Gaynor:

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, `address_string` always returns `self.client_address[0]` 
(https://github.com/python/cpython/blob/master/Lib/http/server.py#L568), which 
means that `!=` comparison always returns False, which means REMOTE_HOST is 
never actually set correctly.

----------
components: Library (Lib)
messages: 225534
nosy: alex
priority: normal
severity: normal
status: open
title: wsgiref doesn't appear to ever set REMOTE_HOST in the environ
versions: Python 3.4, Python 3.5

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22229>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to