Fix HttpNodeInstanceEntryPoint to match latest NPM modules

This commit is contained in:
SteveSandersonMS
2016-09-15 14:15:03 +01:00
parent 591d548de7
commit 2ee0078cfd
2 changed files with 4 additions and 6 deletions

View File

@@ -128,9 +128,8 @@
ExitWhenParentExits_1.exitWhenParentExits(parseInt(parsedArgs.parentPid));
function readRequestBodyAsJson(request, callback) {
var requestBodyAsString = '';
request
.on('data', function (chunk) { requestBodyAsString += chunk; })
.on('end', function () { callback(JSON.parse(requestBodyAsString)); });
request.on('data', function (chunk) { requestBodyAsString += chunk; });
request.on('end', function () { callback(JSON.parse(requestBodyAsString)); });
}
function respondWithError(res, errorValue) {
res.statusCode = 500;