From 411100478a31bb9640afb339343575bed8184fc6 Mon Sep 17 00:00:00 2001 From: SteveSandersonMS Date: Thu, 8 Sep 2016 12:14:45 +0100 Subject: [PATCH] Fix double-encoding typo --- .../Content/Node/entrypoint-http.js | 2 +- .../TypeScript/HttpNodeInstanceEntryPoint.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.AspNetCore.NodeServices/Content/Node/entrypoint-http.js b/src/Microsoft.AspNetCore.NodeServices/Content/Node/entrypoint-http.js index 9d231f3..cfa15bc 100644 --- a/src/Microsoft.AspNetCore.NodeServices/Content/Node/entrypoint-http.js +++ b/src/Microsoft.AspNetCore.NodeServices/Content/Node/entrypoint-http.js @@ -83,7 +83,7 @@ return; } res.setHeader('Content-Type', 'application/json'); - res.end(JSON.stringify(successValueJson)); + res.end(successValueJson); } else { // String - can bypass JSON-serialization altogether diff --git a/src/Microsoft.AspNetCore.NodeServices/TypeScript/HttpNodeInstanceEntryPoint.ts b/src/Microsoft.AspNetCore.NodeServices/TypeScript/HttpNodeInstanceEntryPoint.ts index 5bb8623..f8e619d 100644 --- a/src/Microsoft.AspNetCore.NodeServices/TypeScript/HttpNodeInstanceEntryPoint.ts +++ b/src/Microsoft.AspNetCore.NodeServices/TypeScript/HttpNodeInstanceEntryPoint.ts @@ -29,7 +29,7 @@ const server = http.createServer((req, res) => { return; } res.setHeader('Content-Type', 'application/json'); - res.end(JSON.stringify(successValueJson)); + res.end(successValueJson); } else { // String - can bypass JSON-serialization altogether res.setHeader('Content-Type', 'text/plain');