diff --git a/packages/playwright-core/src/server/fetch.ts b/packages/playwright-core/src/server/fetch.ts index a4ba815c98..07b499d81f 100644 --- a/packages/playwright-core/src/server/fetch.ts +++ b/packages/playwright-core/src/server/fetch.ts @@ -697,7 +697,7 @@ export function createProxyAgent(proxy: types.ProxySettings) { proxyURL.username = proxy.username; if (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 proxyURL.protocol instead of always using CONNECT method. return new HttpsProxyAgent(proxyURL); }