Skip to content

Commit 67a4c5e

Browse files
authored
perf: remove duplicate codes
This line of code has been implemented in the prepareError function
1 parent 1544e69 commit 67a4c5e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/_http_server.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,6 @@ function onParserExecuteCommon(server, socket, parser, state, ret, d) {
689689

690690
if (ret instanceof Error) {
691691
prepareError(ret, parser, d);
692-
ret.rawPacket = d || parser.getCurrentBuffer();
693692
debug('parse error', ret);
694693
socketOnError.call(socket, ret);
695694
} else if (parser.incoming && parser.incoming.upgrade) {

0 commit comments

Comments
 (0)