mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-02-09 15:27:11 +00:00
lib/promauth: follow-up b577413d3b
Convert test result expectations to canonical form. Starting fromb577413d3b
specified header keys are forced into canonical form https://pkg.go.dev/net/http#CanonicalHeaderKey Signed-off-by: hagen1778 <roman@victoriametrics.com> (cherry picked from commite6dd52b04c
)
This commit is contained in:
parent
9fcd34287b
commit
c0659800d5
1 changed files with 3 additions and 3 deletions
|
@ -538,8 +538,8 @@ func TestParseHeadersSuccess(t *testing.T) {
|
|||
}
|
||||
}
|
||||
f(nil)
|
||||
f([]string{"foo: bar"})
|
||||
f([]string{"Foo: bar", "A-b-c: d-e-f"})
|
||||
f([]string{"Foo: bar"})
|
||||
f([]string{"Foo: bar", "A-B-C: d-e-f"})
|
||||
}
|
||||
|
||||
func TestParseHeadersFailure(t *testing.T) {
|
||||
|
@ -590,6 +590,6 @@ func TestConfigHeaders(t *testing.T) {
|
|||
}
|
||||
}
|
||||
f(nil, "")
|
||||
f([]string{"foo: bar"}, "foo: bar\r\n")
|
||||
f([]string{"foo: bar"}, "Foo: bar\r\n")
|
||||
f([]string{"Foo-Bar: Baz s:sdf", "A:b", "X-Forwarded-For: A-B:c"}, "Foo-Bar: Baz s:sdf\r\nA: b\r\nX-Forwarded-For: A-B:c\r\n")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue