Implementation of an Issue #147

This commit is contained in:
Miroslav Stampar
2012-08-15 16:37:18 +02:00
parent 74ee0ce78a
commit f358ab2e73
4 changed files with 10 additions and 1 deletions

View File

@@ -1029,6 +1029,8 @@ def parseTargetUrl():
if not conf.url:
return
originalUrl = conf.url
if re.search("\[.+\]", conf.url) and not socket.has_ipv6:
errMsg = "IPv6 addressing is not supported "
errMsg += "on this platform"
@@ -1091,6 +1093,9 @@ def parseTargetUrl():
conf.httpHeaders = filter(lambda (key, value): key != HTTPHEADER.HOST, conf.httpHeaders)
conf.httpHeaders.append((HTTPHEADER.HOST, getHostHeader(conf.url)))
if originalUrl != conf.url:
kb.originalUrls[conf.url] = originalUrl
def expandAsteriskForColumns(expression):
"""
If the user provided an asterisk rather than the column(s)