mirror of
https://github.com/sbrl/powahroot.git
synced 2024-11-21 22:22:59 +00:00
fixup
This commit is contained in:
parent
0bd0f62029
commit
aa650e8260
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ class Sender {
|
||||||
* @return {void}
|
* @return {void}
|
||||||
*/
|
*/
|
||||||
json(status_code, obj) {
|
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.
|
* Sends a given string with a given content-type.
|
||||||
|
|
Loading…
Reference in a new issue