diff --git a/api.go b/api.go index 1876ffb..8498d65 100644 --- a/api.go +++ b/api.go @@ -22,10 +22,6 @@ func webRegisterPost(w http.ResponseWriter, r *http.Request, _ httprouter.Params var regStatus int var reg []byte aTXT := ACMETxt{} - if r.Body == nil { - http.Error(w, string(jsonError("body_missing")), http.StatusBadRequest) - return - } json.NewDecoder(r.Body).Decode(&aTXT) // Create new user nu, err := DB.Register(aTXT.AllowFrom)