From 0107f684f16ed0a6722da3710bab1fdf905e75fc Mon Sep 17 00:00:00 2001 From: Robby Zambito Date: Wed, 6 Aug 2025 16:01:38 -0400 Subject: Cleanup --- main.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.go b/main.go index aef29cb..4f8501a 100644 --- a/main.go +++ b/main.go @@ -61,10 +61,9 @@ func main() { } defer r.Body.Close() - // Attempt to parse JSON (optional, if you still want to try) var data map[string]any if json.Unmarshal(body, &data) != nil { - addRotLog(&logs, &n, fmt.Sprintf(`{"authRequest": %s}`, string(body))) // Logs unmodified string + addRotLog(&logs, &n, fmt.Sprintf(`{"authRequest": %s}`, string(body))) http.Error(w, "Forbidden", http.StatusForbidden) return } @@ -75,7 +74,6 @@ func main() { } } http.Error(w, "Forbidden", http.StatusForbidden) - }) // Start the server on port 8080 -- cgit