attempt to fix issue 1296, ipv6 header parsing

This commit is contained in:
mdipierro
2013-01-20 14:51:53 -06:00
parent 6684754a47
commit bb0be8a523
2 changed files with 2 additions and 2 deletions

View File

@@ -1 +1 @@
Version 2.4.1-alpha.2+timestamp.2013.01.20.14.49.37
Version 2.4.1-alpha.2+timestamp.2013.01.20.14.51.12

View File

@@ -864,7 +864,7 @@ class MapUrlIn(object):
if not self.host:
(self.host, self.port) = ('localhost', '80')
if ':' in self.host:
(self.host, self.port) = self.host.split(':')
(self.host, self.port) = self.host.rsplit(':',1) # for ipv6 support
if not self.port:
self.port = '443' if self.scheme == 'https' else '80'