diff --git a/main.go b/main.go index 4e31255..b83ba4c 100644 --- a/main.go +++ b/main.go @@ -44,6 +44,7 @@ func handleRoot(w http.ResponseWriter, r *http.Request) { if r.Method != "GET" { w.WriteHeader(http.StatusBadRequest) + return } var Type ResponseType Type = ResponseType(r.URL.Query().Get("t"))