This commit is contained in:
Miroslav Stampar
2025-12-04 11:37:16 +01:00
parent f22abb36a3
commit 801a431a3a
3 changed files with 4 additions and 4 deletions

View File

@@ -5317,7 +5317,7 @@ def parseRequestFile(reqFile, checkParams=True):
_ = re.search(r"%s:.+" % re.escape(HTTP_HEADER.HOST), request)
if _:
host = _.group(0).strip()
if not re.search(r":\d+\Z", host):
if not re.search(r":\d+\Z", host) and int(port) != 80:
request = request.replace(host, "%s:%d" % (host, int(port)))
reqResList.append(request)
else: