Skip to content

Commit bad65ea

Browse files
xiaoxiaojxTrott
authored andcommitted
http: remove duplicate code
This line of code has been implemented in the prepareError function. PR-URL: #39239 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Yongsheng Zhang <[email protected]>
1 parent bd92726 commit bad65ea

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(retinstanceofError){
692692
prepareError(ret,parser,d);
693-
ret.rawPacket=d||parser.getCurrentBuffer();
694693
debug('parse error',ret);
695694
socketOnError.call(socket,ret);
696695
}elseif(parser.incoming&&parser.incoming.upgrade){

0 commit comments

Comments
(0)