From 92b54553c8e4b385ab55221232b9991b1a921091 Mon Sep 17 00:00:00 2001 From: Felipe Andrade Date: Mon, 8 May 2023 19:19:46 -0700 Subject: [PATCH] proxyd/fix: use correct context for auth --- proxyd/proxyd/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxyd/proxyd/server.go b/proxyd/proxyd/server.go index fac04f0..2564ef6 100644 --- a/proxyd/proxyd/server.go +++ b/proxyd/proxyd/server.go @@ -576,7 +576,7 @@ func (s *Server) populateContext(w http.ResponseWriter, r *http.Request) context return nil } - ctx = context.WithValue(r.Context(), ContextKeyAuth, s.authenticatedPaths[authorization]) // nolint:staticcheck + ctx = context.WithValue(ctx, ContextKeyAuth, s.authenticatedPaths[authorization]) // nolint:staticcheck } return context.WithValue(