Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

The REMOTE_ADDR CGI field is required.

The CGI spec defines it as required and WSGI builds on CGI, so there ya
go.
  • Loading branch information...
commit 767163145b61299495942dcf7be278c4b84924fe 1 parent 4a209be
@dowski dowski authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  diesel/protocols/wsgi.py
View
1  diesel/protocols/wsgi.py
@@ -48,6 +48,7 @@ def build_wsgi_env(req, port):
env['SERVER_NAME'] = HOSTNAME
env['SERVER_PORT'] = str(port)
env['SERVER_PROTOCOL'] = 'HTTP/' + req.version
+ env['REMOTE_ADDR'] = req.remote_addr[0]
for name, v in req.headers.iteritems():
env['HTTP_%s' % cgiish_name(name)] = v[0]
Please sign in to comment.
Something went wrong with that request. Please try again.