From f8298cb6a5823bf5900205e62bedebbe232f11be Mon Sep 17 00:00:00 2001 From: WeebDataHoarder <57538841+WeebDataHoarder@users.noreply.github.com> Date: Wed, 2 Mar 2022 20:02:07 +0100 Subject: [PATCH] Fixed random endpoint --- MeteorLight.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MeteorLight.go b/MeteorLight.go index e66dbd9..080c141 100644 --- a/MeteorLight.go +++ b/MeteorLight.go @@ -167,7 +167,7 @@ func main() { jsonData, _ := json.Marshal(e.original) writer.Write(jsonData) } - case "nr": + case "random": if nr != nil { jsonData, _ := json.Marshal(nr.original) writer.Write(jsonData) @@ -286,7 +286,7 @@ func main() { } } else { writer.WriteHeader(http.StatusNotFound) - writer.Write([]byte{'n', 'u', 'l', 'l'}) + writer.Write([]byte{'{', '}'}) } }), }