Skip to content

Commit 2ee0078

Browse files
Fix HttpNodeInstanceEntryPoint to match latest NPM modules
1 parent 591d548 commit 2ee0078

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/Microsoft.AspNetCore.NodeServices/Content/Node/entrypoint-http.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,8 @@
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;

src/Microsoft.AspNetCore.NodeServices/TypeScript/HttpNodeInstanceEntryPoint.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,8 @@ exitWhenParentExits(parseInt(parsedArgs.parentPid));
8080

8181
function 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

8887
function respondWithError(res: http.ServerResponse, errorValue: any) {

0 commit comments

Comments
 (0)