Commit 0c4d78ad authored by Denis Bilenko's avatar Denis Bilenko

wsgi: make env['REMOTE_PORT'] into a string

parent 1888f023
...@@ -88,7 +88,7 @@ class WSGIHandler(object): ...@@ -88,7 +88,7 @@ class WSGIHandler(object):
'QUERY_STRING': query, 'QUERY_STRING': query,
'SERVER_PROTOCOL': 'HTTP/%d.%d' % req.version, 'SERVER_PROTOCOL': 'HTTP/%d.%d' % req.version,
'REMOTE_ADDR': req.remote_host, 'REMOTE_ADDR': req.remote_host,
'REMOTE_PORT': req.remote_port, 'REMOTE_PORT': str(req.remote_port),
'wsgi.input': req.input_buffer}) 'wsgi.input': req.input_buffer})
for header, value in req.get_input_headers(): for header, value in req.get_input_headers():
header = header.replace('-', '_').upper() header = header.replace('-', '_').upper()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment