diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-06-24 22:57:09 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-06-24 22:57:09 +1200 |
commit | 820ac5152e02108f9d4e2226da1ba4369f67a4df (patch) | |
tree | f90c20f77669314babee985f97c5091fd63a4053 /netlib/wsgi.py | |
parent | 5988b65419d6d498b760876b47e4bd627b2467f6 (diff) | |
download | mitmproxy-820ac5152e02108f9d4e2226da1ba4369f67a4df.tar.gz mitmproxy-820ac5152e02108f9d4e2226da1ba4369f67a4df.tar.bz2 mitmproxy-820ac5152e02108f9d4e2226da1ba4369f67a4df.zip |
WSGI SERVER_PORT should be a string.
Diffstat (limited to 'netlib/wsgi.py')
-rw-r--r-- | netlib/wsgi.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/netlib/wsgi.py b/netlib/wsgi.py index 3c3a8384..755bea5a 100644 --- a/netlib/wsgi.py +++ b/netlib/wsgi.py @@ -55,7 +55,7 @@ class WSGIAdaptor: 'CONTENT_TYPE': request.headers.get('Content-Type', [''])[0], 'CONTENT_LENGTH': request.headers.get('Content-Length', [''])[0], 'SERVER_NAME': self.domain, - 'SERVER_PORT': self.port, + 'SERVER_PORT': str(self.port), # FIXME: We need to pick up the protocol read from the request. 'SERVER_PROTOCOL': "HTTP/1.1", } |