Skip to content

Commit

Permalink
build(deps): bump github.com/lasiar/canonicalheader from 1.0.6 to 1.1…
Browse files Browse the repository at this point in the history
….1 (#4715)

Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
  • Loading branch information
dependabot[bot] and ldez committed May 10, 2024
1 parent c90d06b commit 8fe47a9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pkg/golinters/canonicalheader/testdata/canonicalheader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 8fe47a9

Please sign in to comment.