aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/wsgi.py
diff options
context:
space:
mode:
Diffstat (limited to 'netlib/wsgi.py')
-rw-r--r--netlib/wsgi.py2
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",
}