Skip to content

Commit 1f6a075

Browse files
committed
Remove "http 1.1" negotiation.
Not sure whether it's correct, and can't easily test.
1 parent 7899fe7 commit 1f6a075

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

src/HttpsProxySocket.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,6 @@ export class HttpsProxySocket {
4444
debug('creating new HttpsProxyAgent instance: %o', sanitizedOptions);
4545

4646
this.proxyConfig = proxyConfig || {};
47-
48-
// ALPN is supported by Node.js >= v5.
49-
// attempt to negotiate http/1.1 for proxy servers that support http/2
50-
if (!('ALPNProtocols' in sanitizedOptions)) {
51-
sanitizedOptions.ALPNProtocols = ['http 1.1'];
52-
}
53-
5447
this.proxy = sanitizedOptions;
5548
}
5649

0 commit comments

Comments
 (0)