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:
Simon Knott 2024-09-27 14:47:45 +02:00 committed by GitHub
parent 6492999506
commit 11014ea5fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {