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

Skip to content

Commit 7e9e582

Browse files
committed
minor update
1 parent 1d4b10d commit 7e9e582

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

lib/core/common.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,9 +1292,6 @@ def parseTargetUrl():
12921292
else:
12931293
conf.port = 80
12941294

1295-
if conf.forceSSL and conf.port == 80:
1296-
conf.port = 443
1297-
12981295
if __urlSplit[3]:
12991296
conf.parameters[PLACE.GET] = urldecode(__urlSplit[3]) if __urlSplit[3] and urlencode(DEFAULT_GET_POST_DELIMITER, None) not in __urlSplit[3] else __urlSplit[3]
13001297

lib/core/option.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,8 @@ def __parseBurpLog(content):
295295
conf.httpHeaders.append((str(key), str(value)))
296296

297297
if getPostReq and (params or cookie):
298+
if conf.forceSSL:
299+
scheme = "https"
298300
if not port and isinstance(scheme, basestring) and scheme.lower() == "https":
299301
port = "443"
300302
elif not scheme and port == "443":

0 commit comments

Comments
 (0)