mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +00:00
Fix double-encoding typo
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user