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

Skip to content

Commit 0622cdf

Browse files
committed
Bug fix (credentials used in combination with request file)
1 parent 3b47418 commit 0622cdf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/core/option.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ def _setAuthCred():
11151115
(used by connection handler)
11161116
"""
11171117

1118-
if kb.passwordMgr:
1118+
if kb.passwordMgr and all(_ is not None for _ in (conf.scheme, conf.hostname, conf.port, conf.authUsername, conf.authPassword)):
11191119
kb.passwordMgr.add_password(None, "%s://%s:%d" % (conf.scheme, conf.hostname, conf.port), conf.authUsername, conf.authPassword)
11201120

11211121
def _setHTTPAuthentication():

0 commit comments

Comments
 (0)