mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-07 17:02:39 +01:00
minor patch
This commit is contained in:
parent
019f4d344a
commit
e76cb19e35
1 changed files with 1 additions and 1 deletions
|
|
@ -225,7 +225,7 @@ class Connect:
|
|||
|
||||
headers[HTTPHEADER.HOST] = urlparse.urlparse(url).netloc
|
||||
|
||||
if headers[HTTPHEADER.HOST].endswith(':80'):
|
||||
if any(map(lambda x: headers[HTTPHEADER.HOST].endswith(':%d' % x), [80, 443])):
|
||||
headers[HTTPHEADER.HOST] = headers[HTTPHEADER.HOST].split(':')[0]
|
||||
|
||||
if auxHeaders:
|
||||
|
|
|
|||
Loading…
Reference in a new issue