Skip to content

Commit

Permalink
Use allowH2 for both connections (microsoft/vscode#235410)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrmarti committed Dec 5, 2024
1 parent f09ed5d commit 471fd7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -597,8 +597,8 @@ export function createFetchPatch(params: ProxyAgentParams, originalFetch: typeof
uri: proxyURL,
allowH2,
headers: proxyAuthorization ? { 'Proxy-Authorization': proxyAuthorization } : undefined,
...(requestCA ? { requestTls: { ca: requestCA } } : {}),
...(proxyCA ? { proxyTls: { ca: proxyCA } } : {}),
requestTls: requestCA ? { allowH2, ca: requestCA } : { allowH2 },
proxyTls: proxyCA ? { allowH2, ca: proxyCA } : { allowH2 },
clientFactory: (origin: URL, opts: object): undici.Dispatcher => (new undici.Pool(origin, opts) as any).compose((dispatch: undici.Dispatcher['dispatch']) => {
class ProxyAuthHandler extends undici.DecoratorHandler {
private abort: ((err?: Error) => void) | undefined;
Expand Down

0 comments on commit 471fd7a

Please sign in to comment.