From c939abaf5e09212dd365acc2fc983ea18f886f3e Mon Sep 17 00:00:00 2001 From: Pavel Korotkov Date: Fri, 24 Jul 2020 17:05:33 +0300 Subject: [PATCH] Add missing return --- neofs/api/user-auth.go | 1 + 1 file changed, 1 insertion(+) diff --git a/neofs/api/user-auth.go b/neofs/api/user-auth.go index 3b3c431..99dd0fb 100644 --- a/neofs/api/user-auth.go +++ b/neofs/api/user-auth.go @@ -15,6 +15,7 @@ func AttachUserAuth(router *mux.Router, center *auth.Center, log *zap.Logger) { if err != nil { log.Error("failed to pass authentication", zap.Error(err)) WriteErrorResponse(r.Context(), w, getAPIError(ErrAccessDenied), r.URL) + return } h.ServeHTTP(w, r.WithContext(auth.SetBearerToken(r.Context(), bearerToken)))