From eb7b8fcfb9996a5b464f9e6e4431c849de6909a2 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Thu, 24 Feb 2022 01:24:13 +0000 Subject: [PATCH] Fix crash int he neww .json() method --- Server/Sender.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/Sender.mjs b/Server/Sender.mjs index 4a84652..2e6f0eb 100644 --- a/Server/Sender.mjs +++ b/Server/Sender.mjs @@ -44,7 +44,7 @@ class Sender { * @return {void} */ json(status_code, obj) { - this.string(status_code, "application/json", obj); + this.string(status_code, "application/json", JSON.parse(obj)); } /** * Sends a given string with a given content-type.