From 7611af031c0deaf565ef77f99d3c3e22c11bf5bf Mon Sep 17 00:00:00 2001 From: maura fortino Date: Wed, 20 Sep 2023 08:24:05 -0400 Subject: [PATCH] added a nolint: gosec to fix memory aliasing alert --- primaryHandler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/primaryHandler.go b/primaryHandler.go index 109cc1b..1704ef3 100644 --- a/primaryHandler.go +++ b/primaryHandler.go @@ -331,6 +331,7 @@ func NewPrimaryHandler(logger *zap.Logger, v *viper.Viper, registry xmetrics.Reg // nolint:errorlint if headerer, ok := err.(gokithttp.Headerer); ok { for k, values := range headerer.Headers() { + // nolint: gosec for _, v := range values { w.Header().Add(k, v) }