This commit is contained in:
Starbeamrainbowlabs 2022-02-24 01:25:29 +00:00
parent 0bd0f62029
commit aa650e8260
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class Sender {
* @return {void}
*/
json(status_code, obj) {
this.string(status_code, "application/json", JSON.parse(obj));
this.string(status_code, "application/json", JSON.stringify(obj));
}
/**
* Sends a given string with a given content-type.