Skip to content

Commit f772998

Browse files
committed
http2: add http1Options for HTTP/1 fallback configuration
1 parent a3b1324 commit f772998

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/internal/http2/core.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ const { Duplex } = require('stream');
4848
const tls = require('tls');
4949
const { setImmediate, setTimeout, clearTimeout } = require('timers');
5050

51-
const { kIncomingMessage } = require('_http_common');
5251
const {
53-
kServerResponse,
5452
Server: HttpServer,
5553
httpServerPreClose,
5654
setupConnectionsTracking,
@@ -3259,10 +3257,6 @@ function connectionListener(socket) {
32593257
if (socket.alpnProtocol === false || socket.alpnProtocol === 'http/1.1') {
32603258
// Fallback to HTTP/1.1
32613259
if (options.allowHTTP1 === true) {
3262-
socket.server[kIncomingMessage] =
3263-
options.http1Options.IncomingMessage || http.IncomingMessage;
3264-
socket.server[kServerResponse] =
3265-
options.http1Options.ServerResponse || http.ServerResponse;
32663260
return httpConnectionListener.call(this, socket);
32673261
}
32683262
// Let event handler deal with the socket

0 commit comments

Comments
 (0)