summaryrefslogtreecommitdiff
path: root/src/http/assets.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/assets.go')
-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
}