mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-27 04:05:58 +00: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
|
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…
Add table
Add a link
Reference in a new issue