diff --git a/pkg/middleware/account_uuid.go b/pkg/middleware/account_uuid.go index 6c3af95ca2..61238a7b0b 100644 --- a/pkg/middleware/account_uuid.go +++ b/pkg/middleware/account_uuid.go @@ -103,7 +103,7 @@ func AccountUUID(opts ...AccountMiddlewareOption) func(next http.Handler) http.H return } - w.Header().Set("x-access-token", token) + r.Header.Set("x-access-token", token) next.ServeHTTP(w, r) }) }