minor fix

This commit is contained in:
Miroslav Stampar 2011-12-20 09:10:44 +00:00
parent dcf842692b
commit 1b16b5e0f1

View File

@ -158,7 +158,7 @@ class Connect:
url = urlparse.urljoin(conf.url, url)
# flag to know if we are dealing with the same target host
target = reduce(lambda x, y: x == y, map(lambda x: urlparse.urlparse(x).netloc.split(':')[0], [url, conf.url]))
target = reduce(lambda x, y: x == y, map(lambda x: urlparse.urlparse(x).netloc.split(':')[0], [url, conf.url or ""]))
if not retrying:
# Reset the number of connection retries