Skip to content

Commit 162ee9b

Browse files
dglSuperQ
andauthored
config: Fix duplicate header detection for all case variants (#2810)
strings.Title only uppercases characters, it does not fully canonicalise. Signed-off-by: David Leadbeater <[email protected]> Co-authored-by: Ben Kochie <[email protected]>
1 parent 9f65044 commit 162ee9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/notifiers_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func TestEmailHeadersCollision(t *testing.T) {
4646
4747
headers:
4848
Subject: 'Alert'
49-
subject: 'New Alert'
49+
sUbject: 'New Alert'
5050
`
5151
var cfg EmailConfig
5252
err := yaml.UnmarshalStrict([]byte(in), &cfg)

0 commit comments

Comments
 (0)