From 17294e517996a971de5fbeba3084f1bfb69c2816 Mon Sep 17 00:00:00 2001 From: maru Date: Fri, 10 May 2024 15:37:24 -0400 Subject: [PATCH] Fix handleDailySeed --- api/endpoints.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/api/endpoints.go b/api/endpoints.go index 9087d67..2227fa6 100644 --- a/api/endpoints.go +++ b/api/endpoints.go @@ -19,7 +19,6 @@ package api import ( "database/sql" - "encoding/base64" "encoding/json" "fmt" "net/http" @@ -340,13 +339,7 @@ func handleDailySeed(w http.ResponseWriter, r *http.Request) { return } - bytes, err := base64.StdEncoding.DecodeString(seed) - if err != nil { - httpError(w, r, err, http.StatusInternalServerError) - return - } - - w.Write(bytes) + w.Write([]byte(seed)) } func handleDailyRankings(w http.ResponseWriter, r *http.Request) {