File tree 2 files changed +95
-82
lines changed
2 files changed +95
-82
lines changed Original file line number Diff line number Diff line change @@ -1763,11 +1763,11 @@ function getProxyUrl(reqUrl) {
1763
1763
})();
1764
1764
if (proxyVar) {
1765
1765
try {
1766
- return new URL (proxyVar);
1766
+ return new DecodedURL (proxyVar);
1767
1767
}
1768
1768
catch (_a) {
1769
1769
if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://'))
1770
- return new URL (`http://${proxyVar}`);
1770
+ return new DecodedURL (`http://${proxyVar}`);
1771
1771
}
1772
1772
}
1773
1773
else {
@@ -1826,6 +1826,19 @@ function isLoopbackAddress(host) {
1826
1826
hostLower.startsWith('[::1]') ||
1827
1827
hostLower.startsWith('[0:0:0:0:0:0:0:1]'));
1828
1828
}
1829
+ class DecodedURL extends URL {
1830
+ constructor(url, base) {
1831
+ super(url, base);
1832
+ this._decodedUsername = decodeURIComponent(super.username);
1833
+ this._decodedPassword = decodeURIComponent(super.password);
1834
+ }
1835
+ get username() {
1836
+ return this._decodedUsername;
1837
+ }
1838
+ get password() {
1839
+ return this._decodedPassword;
1840
+ }
1841
+ }
1829
1842
//# sourceMappingURL=proxy.js.map
1830
1843
1831
1844
/***/ }),
You can’t perform that action at this time.
0 commit comments