mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Merge pull request #895 from yan12125/fix-proxy-auth
Fix retrieving credentials for authenticating against proxies
This commit is contained in:
commit
6a0b2ce60a
1 changed files with 5 additions and 1 deletions
|
|
@ -63,7 +63,11 @@ httpAuth.processPendingCallbacks = async function(details, resolve, reject) {
|
|||
httpAuth.requests.push(details.requestId);
|
||||
|
||||
if (details.challenger) {
|
||||
details.proxyUrl = details.challenger.host;
|
||||
// Non-HTTP proxies are possible with PAC scripts, while currently only
|
||||
// Firefox provides info about the proxy protocol used [1].
|
||||
// [1] https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/webRequest/onAuthRequired
|
||||
let scheme = details.proxyInfo ? details.proxyInfo.type : 'http';
|
||||
details.proxyUrl = scheme + '://' + details.challenger.host;
|
||||
}
|
||||
|
||||
details.searchUrl = (details.isProxy && details.proxyUrl) ? details.proxyUrl : details.url;
|
||||
|
|
|
|||
Loading…
Reference in a new issue