diff options
-rw-r--r-- | src/http/assets.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/assets.go b/src/http/assets.go index 2cbe7a2..260b786 100644 --- a/src/http/assets.go +++ b/src/http/assets.go @@ -155,7 +155,7 @@ func (a *api) postPostAssetHandler() http.Handler { return http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) { id := r.PostFormValue("id") - if id == "/" { + if id == "" { apiutil.BadRequest(rw, r, errors.New("id is required")) return } |