Skip to content

Commit 4111004

Browse files
Fix double-encoding typo
1 parent 041d173 commit 4111004

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
return;
8484
}
8585
res.setHeader('Content-Type', 'application/json');
86-
res.end(JSON.stringify(successValueJson));
86+
res.end(successValueJson);
8787
}
8888
else {
8989
// String - can bypass JSON-serialization altogether

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const server = http.createServer((req, res) => {
2929
return;
3030
}
3131
res.setHeader('Content-Type', 'application/json');
32-
res.end(JSON.stringify(successValueJson));
32+
res.end(successValueJson);
3333
} else {
3434
// String - can bypass JSON-serialization altogether
3535
res.setHeader('Content-Type', 'text/plain');

0 commit comments

Comments
 (0)