fix bug in asset upload id checker

main
Brian Picciano 3 months ago
parent 4f01edb923
commit cef74151d2
  1. 2
      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
}

Loading…
Cancel
Save