diff options
author | Brian Picciano <mediocregopher@gmail.com> | 2022-09-13 13:25:04 +0200 |
---|---|---|
committer | Brian Picciano <mediocregopher@gmail.com> | 2022-09-13 13:25:04 +0200 |
commit | cef74151d279c43163ebddb59e46ddd07e9b8302 (patch) | |
tree | ba5379591c3975faafd9e8e61b66663a121cfce1 /src | |
parent | 4f01edb9230f58ff84b0dd892c931ec8ac9aad55 (diff) |
fix bug in asset upload id checker
Diffstat (limited to 'src')
-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 } |