Skip to content

Commit 824ea00

Browse files
docs(server): say why the proxy client factory drops connect
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent a03048d commit 824ea00

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/server/src/outboundHttp.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ export function installHttp1FetchDispatcher(): void {
3434
usesEnvProxy
3535
? new undici.EnvHttpProxyAgent({
3636
allowH2: false,
37-
// The connection to an HTTPS proxy is built here, not from `allowH2`.
37+
// The connection to an HTTPS proxy is built here, not from `allowH2`. ProxyAgent's
38+
// `connect` option is dropped on purpose: its connector has h2 fixed on.
3839
clientFactory: (origin) => new undici.Pool(origin, { allowH2: false }),
3940
})
4041
: new undici.Agent({ allowH2: false }),

0 commit comments

Comments
 (0)