fix bug in asset upload id checker
This commit is contained in:
parent
4f01edb923
commit
cef74151d2
@ -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…
Reference in New Issue
Block a user