attempt to fix issue 1296, ipv6 header parsing
This commit is contained in:
@@ -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
|
||||||
|
|||||||
+1
-1
@@ -864,7 +864,7 @@ class MapUrlIn(object):
|
|||||||
if not self.host:
|
if not self.host:
|
||||||
(self.host, self.port) = ('localhost', '80')
|
(self.host, self.port) = ('localhost', '80')
|
||||||
if ':' in self.host:
|
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:
|
if not self.port:
|
||||||
self.port = '443' if self.scheme == 'https' else '80'
|
self.port = '443' if self.scheme == 'https' else '80'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user