diff options
author | ianb <devnull@localhost> | 2006-05-25 21:13:14 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2006-05-25 21:13:14 +0000 |
commit | 0be6006e79af48e9862bc29bce330f01e2a65e05 (patch) | |
tree | 2cb6e2b2409063db896be7ce42db8962e56cde03 /paste/urlmap.py | |
parent | c533be78b0abd1dfd4fce41f9da3e21bc327e543 (diff) | |
download | paste-0be6006e79af48e9862bc29bce330f01e2a65e05.tar.gz |
Reapplying a previously-fixed port-related bug
Diffstat (limited to 'paste/urlmap.py')
-rw-r--r-- | paste/urlmap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/urlmap.py b/paste/urlmap.py index 80030fa..142ff37 100644 --- a/paste/urlmap.py +++ b/paste/urlmap.py @@ -182,7 +182,7 @@ class URLMap(DictMixin): def __call__(self, environ, start_response): host = environ.get('HTTP_HOST', environ.get('SERVER_NAME')).lower() if ':' in host: - host, port = host.split(':', 1)[0] + host, port = host.split(':', 1) else: if environ['wsgi.url_scheme'] == 'http': port = '80' |