mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +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)))
|
||||
|
||||
if getPostReq and (params or cookie):
|
||||
if conf.forceSSL:
|
||||
scheme = "https"
|
||||
port = "443"
|
||||
if not port and isinstance(scheme, basestring) and scheme.lower() == "https":
|
||||
port = "443"
|
||||
elif not scheme and port == "443":
|
||||
scheme = "https"
|
||||
|
||||
if conf.forceSSL:
|
||||
scheme = "https"
|
||||
port = port or "443"
|
||||
|
||||
if not url.startswith("http"):
|
||||
url = "%s://%s:%s%s" % (scheme or "http", host, port or "80", url)
|
||||
scheme = None
|
||||
|
|
Loading…
Reference in New Issue
Block a user