Update packages/playwright-core/src/server/fetch.ts
Co-authored-by: Max Schmitt <max@schmitt.mx> Signed-off-by: Simon Knott <info@simonknott.de>
This commit is contained in:
parent
6492999506
commit
11014ea5fd
|
|
@ -698,7 +698,7 @@ export function createProxyAgent(proxy: types.ProxySettings) {
|
||||||
if (proxy.password)
|
if (proxy.password)
|
||||||
proxyURL.password = proxy.password;
|
proxyURL.password = proxy.password;
|
||||||
// TODO: We should use HttpProxyAgent conditional on proxyOpts.protocol instead of always using CONNECT method.
|
// TODO: We should use HttpProxyAgent conditional on proxyOpts.protocol instead of always using CONNECT method.
|
||||||
return new HttpsProxyAgent(proxy.server);
|
return new HttpsProxyAgent(proxyURL);
|
||||||
}
|
}
|
||||||
|
|
||||||
function toHeadersArray(rawHeaders: string[]): types.HeadersArray {
|
function toHeadersArray(rawHeaders: string[]): types.HeadersArray {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue