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

Skip to content

Commit 3b47418

Browse files
committed
Fix for an Issue #640
1 parent 56d76e6 commit 3b47418

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

lib/controller/checks.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,6 +1210,8 @@ def checkConnection(suppressOutput=False):
12101210
logger.info(infoMsg)
12111211

12121212
try:
1213+
Request.queryPage(content=True, noteResponseTime=False) # dropping first page because it can be totally different than subsequent (e.g. WebGoat) before the Cookie is set up
1214+
12131215
page, _ = Request.queryPage(content=True, noteResponseTime=False)
12141216
kb.originalPage = kb.pageTemplate = page
12151217

lib/core/option.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1116,7 +1116,7 @@ def _setAuthCred():
11161116
"""
11171117

11181118
if kb.passwordMgr:
1119-
kb.passwordMgr.add_password(None, "%s://%s" % (conf.scheme, conf.hostname), conf.authUsername, conf.authPassword)
1119+
kb.passwordMgr.add_password(None, "%s://%s:%d" % (conf.scheme, conf.hostname, conf.port), conf.authUsername, conf.authPassword)
11201120

11211121
def _setHTTPAuthentication():
11221122
"""

0 commit comments

Comments
 (0)