From 564d9320d8b6b452445f9cee6d28c4f30a2e5280 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 10 May 2024 01:01:54 +0000 Subject: [PATCH 1/2] build(deps): bump github.com/lasiar/canonicalheader from 1.0.6 to 1.1.1 Bumps [github.com/lasiar/canonicalheader](https://github.com/lasiar/canonicalheader) from 1.0.6 to 1.1.1. - [Release notes](https://github.com/lasiar/canonicalheader/releases) - [Changelog](https://github.com/lasiar/canonicalheader/blob/main/.goreleaser.yaml) - [Commits](https://github.com/lasiar/canonicalheader/compare/v1.0.6...v1.1.1) --- updated-dependencies: - dependency-name: github.com/lasiar/canonicalheader dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 36dbb5abb0d4..9a7442aa04b7 100644 --- a/go.mod +++ b/go.mod @@ -65,7 +65,7 @@ require ( github.com/kulti/thelper v0.6.3 github.com/kunwardeep/paralleltest v1.0.10 github.com/kyoh86/exportloopref v0.1.11 - github.com/lasiar/canonicalheader v1.0.6 + github.com/lasiar/canonicalheader v1.1.1 github.com/ldez/gomoddirectives v0.2.4 github.com/ldez/tagliatelle v0.5.0 github.com/leonklingele/grouper v1.1.2 diff --git a/go.sum b/go.sum index 930a18bfe4a9..7e95eece7146 100644 --- a/go.sum +++ b/go.sum @@ -343,8 +343,8 @@ github.com/kunwardeep/paralleltest v1.0.10 h1:wrodoaKYzS2mdNVnc4/w31YaXFtsc21PCT github.com/kunwardeep/paralleltest v1.0.10/go.mod h1:2C7s65hONVqY7Q5Efj5aLzRCNLjw2h4eMc9EcypGjcY= github.com/kyoh86/exportloopref v0.1.11 h1:1Z0bcmTypkL3Q4k+IDHMWTcnCliEZcaPiIe0/ymEyhQ= github.com/kyoh86/exportloopref v0.1.11/go.mod h1:qkV4UF1zGl6EkF1ox8L5t9SwyeBAZ3qLMd6up458uqA= -github.com/lasiar/canonicalheader v1.0.6 h1:LJiiZ/MzkqibXOL2v+J8+WZM21pM0ivrBY/jbm9f5fo= -github.com/lasiar/canonicalheader v1.0.6/go.mod h1:GfXTLQb3O1qF5qcSTyXTnfNUggUNyzbkOSpzZ0dpUJo= +github.com/lasiar/canonicalheader v1.1.1 h1:wC+dY9ZfiqiPwAexUApFush/csSPXeIi4QqyxXmng8I= +github.com/lasiar/canonicalheader v1.1.1/go.mod h1:cXkb3Dlk6XXy+8MVQnF23CYKWlyA7kfQhSw2CcZtZb0= github.com/ldez/gomoddirectives v0.2.4 h1:j3YjBIjEBbqZ0NKtBNzr8rtMHTOrLPeiwTkfUJZ3alg= github.com/ldez/gomoddirectives v0.2.4/go.mod h1:oWu9i62VcQDYp9EQ0ONTfqLNh+mDLWWDO+SO0qSQw5g= github.com/ldez/tagliatelle v0.5.0 h1:epgfuYt9v0CG3fms0pEgIMNPuFf/LpPIfjk4kyqSioo= From 3313f325e10f8a647af3c9c6b11e20c20ebbd249 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Fri, 10 May 2024 03:07:57 +0200 Subject: [PATCH 2/2] chore: update tests --- pkg/golinters/canonicalheader/testdata/canonicalheader.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/golinters/canonicalheader/testdata/canonicalheader.go b/pkg/golinters/canonicalheader/testdata/canonicalheader.go index 07e149522cbe..7a58395083d6 100644 --- a/pkg/golinters/canonicalheader/testdata/canonicalheader.go +++ b/pkg/golinters/canonicalheader/testdata/canonicalheader.go @@ -12,6 +12,8 @@ func canonicalheader() { v.Del("Test-HEader") // want `non-canonical header "Test-HEader", instead use: "Test-Header"` v.Values("Test-HEader") // want `non-canonical header "Test-HEader", instead use: "Test-Header"` + v.Values("Sec-WebSocket-Accept") + v.Set("Test-Header", "value") v.Add("Test-Header", "value") v.Del("Test-Header")