summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2022-09-13 13:25:04 +0200
committerBrian Picciano <mediocregopher@gmail.com>2022-09-13 13:25:04 +0200
commitcef74151d279c43163ebddb59e46ddd07e9b8302 (patch)
treeba5379591c3975faafd9e8e61b66663a121cfce1
parent4f01edb9230f58ff84b0dd892c931ec8ac9aad55 (diff)
fix bug in asset upload id checker
-rw-r--r--src/http/assets.go2
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
}