diff --git a/pkg/server/sync.go b/pkg/server/sync.go index 14fca2c65..fb78f20f2 100644 --- a/pkg/server/sync.go +++ b/pkg/server/sync.go @@ -311,6 +311,7 @@ func (sh *SyncHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request) { if xsrftoken.Valid(token, auth.ProcessRandom(), "user", "runFullValidate") { sh.startFullValidation() http.Redirect(rw, req, "./", http.StatusFound) + return } } http.Error(rw, "Bad POST request", http.StatusBadRequest) @@ -364,7 +365,7 @@ func (sh *SyncHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request) { f("