Skip to content

Commit

Permalink
Merge pull request #301 from xmidt-org/SPDX-copyright
Browse files Browse the repository at this point in the history
added a nolint: gosec to fix memory aliasing alert
  • Loading branch information
maurafortino committed Sep 21, 2023
2 parents 1982261 + 94fe76b commit 19128a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions primaryHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 19128a6

Please sign in to comment.