mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-08 05:43:17 +03:00
minor fix
This commit is contained in:
parent
6ebb621228
commit
2b1b4c0742
|
@ -298,14 +298,15 @@ def __feedTargetsDict(reqFile, addedTargetUrls):
|
||||||
conf.httpHeaders.append((str(key), str(value)))
|
conf.httpHeaders.append((str(key), str(value)))
|
||||||
|
|
||||||
if getPostReq and (params or cookie):
|
if getPostReq and (params or cookie):
|
||||||
if conf.forceSSL:
|
|
||||||
scheme = "https"
|
|
||||||
port = "443"
|
|
||||||
if not port and isinstance(scheme, basestring) and scheme.lower() == "https":
|
if not port and isinstance(scheme, basestring) and scheme.lower() == "https":
|
||||||
port = "443"
|
port = "443"
|
||||||
elif not scheme and port == "443":
|
elif not scheme and port == "443":
|
||||||
scheme = "https"
|
scheme = "https"
|
||||||
|
|
||||||
|
if conf.forceSSL:
|
||||||
|
scheme = "https"
|
||||||
|
port = port or "443"
|
||||||
|
|
||||||
if not url.startswith("http"):
|
if not url.startswith("http"):
|
||||||
url = "%s://%s:%s%s" % (scheme or "http", host, port or "80", url)
|
url = "%s://%s:%s%s" % (scheme or "http", host, port or "80", url)
|
||||||
scheme = None
|
scheme = None
|
||||||
|
|
Loading…
Reference in New Issue
Block a user