mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 11:03:47 +03:00
minor patch
This commit is contained in:
parent
019f4d344a
commit
e76cb19e35
|
@ -225,7 +225,7 @@ class Connect:
|
||||||
|
|
||||||
headers[HTTPHEADER.HOST] = urlparse.urlparse(url).netloc
|
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]
|
headers[HTTPHEADER.HOST] = headers[HTTPHEADER.HOST].split(':')[0]
|
||||||
|
|
||||||
if auxHeaders:
|
if auxHeaders:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user