Skip to content

Commit 00342b3

Browse files
xiaoxiaojxkaiduo
authored and
kaiduo
committed
remove duplicate codes
This line of code has been implemented in the prepareError function
1 parent 79d6815 commit 00342b3

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
@@ -690,7 +690,6 @@ function onParserExecuteCommon(server, socket, parser, state, ret, d) {
690690

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

0 commit comments

Comments
 (0)