mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 10:08:57 +00:00
Fix double-encoding typo
This commit is contained in:
@@ -83,7 +83,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
res.setHeader('Content-Type', 'application/json');
|
res.setHeader('Content-Type', 'application/json');
|
||||||
res.end(JSON.stringify(successValueJson));
|
res.end(successValueJson);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// String - can bypass JSON-serialization altogether
|
// String - can bypass JSON-serialization altogether
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ const server = http.createServer((req, res) => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
res.setHeader('Content-Type', 'application/json');
|
res.setHeader('Content-Type', 'application/json');
|
||||||
res.end(JSON.stringify(successValueJson));
|
res.end(successValueJson);
|
||||||
} else {
|
} else {
|
||||||
// String - can bypass JSON-serialization altogether
|
// String - can bypass JSON-serialization altogether
|
||||||
res.setHeader('Content-Type', 'text/plain');
|
res.setHeader('Content-Type', 'text/plain');
|
||||||
|
|||||||
Reference in New Issue
Block a user