diff options
author | Robby Zambito <contact@robbyzambito.me> | 2025-08-06 16:01:38 -0400 |
---|---|---|
committer | Robby Zambito <contact@robbyzambito.me> | 2025-08-06 16:01:38 -0400 |
commit | 0107f684f16ed0a6722da3710bab1fdf905e75fc (patch) | |
tree | e8ca5bb4bf6aec2c9f3038896826b60cb56fb0a0 /main.go | |
parent | 8293c81319004aa76eb2991894a70b0496ff5bc0 (diff) |
Cleanup
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 |