diff --git a/pkg/server/handler.go b/pkg/server/handler.go index 8593913..50193a9 100644 --- a/pkg/server/handler.go +++ b/pkg/server/handler.go @@ -185,8 +185,7 @@ func indexHandler(ctx *Context) { path := ctx.Path() if fpath, ok = hasTrimPrefix(path, core.IndexPrefix); ok { err = scanFile(ctx.Srv, fpath) - } - if fpath, ok = hasTrimPrefix(path, core.RetagPrefix); ok { + } else if fpath, ok = hasTrimPrefix(path, core.RetagPrefix); ok { if fpath == "" { go func() { err := ctx.Srv.DB.RetagAll()