From 1d75436a1c4214c72290272c25e95e35badf09a6 Mon Sep 17 00:00:00 2001 From: Shaw <784487301@qq.com> Date: Sat, 3 Jul 2021 02:33:35 +0800 Subject: [PATCH] http: remove duplicate code This line of code has been implemented in the prepareError function. PR-URL: https://github.com/nodejs/node/pull/39239 Reviewed-By: Robert Nagy Reviewed-By: James M Snell Reviewed-By: Yongsheng Zhang --- lib/_http_server.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/_http_server.js b/lib/_http_server.js index 0d06919ea017a4..89350300153b48 100644 --- a/lib/_http_server.js +++ b/lib/_http_server.js @@ -690,7 +690,6 @@ function onParserExecuteCommon(server, socket, parser, state, ret, d) { if (ret instanceof Error) { prepareError(ret, parser, d); - ret.rawPacket = d || parser.getCurrentBuffer(); debug('parse error', ret); socketOnError.call(socket, ret); } else if (parser.incoming && parser.incoming.upgrade) {