Fixed the problem of using -r to parse the request where host:ip does not splice the port.

This commit is contained in:
y1n 2024-05-10 11:36:10 +08:00
parent 507c719bef
commit 2cb46c0839

View File

@ -5401,8 +5401,6 @@ def parseRequestFile(reqFile, checkParams=True):
scheme, value = value.split('://')[:2]
port = extractRegexResult(r":(?P<result>\d+)\Z", value)
if port:
value = value[:-(1 + len(port))]
host = value