fix: return if method is not correct

This commit is contained in:
HeshamTB 2023-09-25 22:09:33 +03:00
parent e1a9246b1a
commit 992239ff1f

View File

@ -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"))