Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2b1b4c0

Browse files
committed
minor fix
1 parent 6ebb621 commit 2b1b4c0

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

lib/core/option.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,14 +298,15 @@ def __parseBurpLog(content):
298298
conf.httpHeaders.append((str(key), str(value)))
299299

300300
if getPostReq and (params or cookie):
301-
if conf.forceSSL:
302-
scheme = "https"
303-
port = "443"
304301
if not port and isinstance(scheme, basestring) and scheme.lower() == "https":
305302
port = "443"
306303
elif not scheme and port == "443":
307304
scheme = "https"
308305

306+
if conf.forceSSL:
307+
scheme = "https"
308+
port = port or "443"
309+
309310
if not url.startswith("http"):
310311
url = "%s://%s:%s%s" % (scheme or "http", host, port or "80", url)
311312
scheme = None

0 commit comments

Comments
 (0)