File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
src/Microsoft.AspNetCore.NodeServices Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 128128 ExitWhenParentExits_1 . exitWhenParentExits ( parseInt ( parsedArgs . parentPid ) ) ;
129129 function readRequestBodyAsJson ( request , callback ) {
130130 var requestBodyAsString = '' ;
131- request
132- . on ( 'data' , function ( chunk ) { requestBodyAsString += chunk ; } )
133- . on ( 'end' , function ( ) { callback ( JSON . parse ( requestBodyAsString ) ) ; } ) ;
131+ request . on ( 'data' , function ( chunk ) { requestBodyAsString += chunk ; } ) ;
132+ request . on ( 'end' , function ( ) { callback ( JSON . parse ( requestBodyAsString ) ) ; } ) ;
134133 }
135134 function respondWithError ( res , errorValue ) {
136135 res . statusCode = 500 ;
Original file line number Diff line number Diff line change @@ -80,9 +80,8 @@ exitWhenParentExits(parseInt(parsedArgs.parentPid));
8080
8181function readRequestBodyAsJson ( request , callback ) {
8282 let requestBodyAsString = '' ;
83- request
84- . on ( 'data' , chunk => { requestBodyAsString += chunk ; } )
85- . on ( 'end' , ( ) => { callback ( JSON . parse ( requestBodyAsString ) ) ; } ) ;
83+ request . on ( 'data' , chunk => { requestBodyAsString += chunk ; } ) ;
84+ request . on ( 'end' , ( ) => { callback ( JSON . parse ( requestBodyAsString ) ) ; } ) ;
8685}
8786
8887function respondWithError ( res : http . ServerResponse , errorValue : any ) {
You can’t perform that action at this time.
0 commit comments