We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6d37d7 commit eed8d7eCopy full SHA for eed8d7e
1 file changed
lib/core/common.py
@@ -3056,7 +3056,9 @@ def getHostHeader(url):
3056
3057
retVal = urlparse.urlparse(url).netloc
3058
3059
- if any(retVal.endswith(':%d' % _) for _ in [80, 443]):
+ if re.search("http(s)?://\[.+\]", url, re.I):
3060
+ retVal = extractRegexResult("http(s)?://\[(?P<result>.+)\]", url)
3061
+ elif any(retVal.endswith(':%d' % _) for _ in [80, 443]):
3062
retVal = retVal.split(':')[0]
3063
3064
return retVal
0 commit comments