Set netrc location with QUTE_NETRC
This commit is contained in:
parent
8dab1cf58a
commit
e3c92a9bae
@ -330,7 +330,7 @@ class NetworkManager(QNetworkAccessManager):
|
||||
# altogether.
|
||||
reply.netrc_used = True
|
||||
try:
|
||||
net = netrc.netrc()
|
||||
net = netrc.netrc(os.environ.get('QUTE_NETRC'))
|
||||
authenticators = net.authenticators(reply.url().host())
|
||||
if authenticators is not None:
|
||||
(user, _account, password) = authenticators
|
||||
|
Loading…
Reference in New Issue
Block a user