From 99d85e9cce70a6816a4bff2f3ecbdda19f542bc2 Mon Sep 17 00:00:00 2001 From: benoitc Date: Wed, 5 Oct 2011 06:07:05 +0200 Subject: [PATCH] make sure that the port is a string. close #271 thanks!! --- gunicorn/http/wsgi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gunicorn/http/wsgi.py b/gunicorn/http/wsgi.py index c6a0ef70..d98bf1dd 100644 --- a/gunicorn/http/wsgi.py +++ b/gunicorn/http/wsgi.py @@ -133,7 +133,7 @@ def create(req, sock, client, server, cfg): else: server.append('') environ['SERVER_NAME'] = server[0] - environ['SERVER_PORT'] = server[1] + environ['SERVER_PORT'] = str(server[1]) path_info = req.path if script_name: