mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
minor patch
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user