0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00

Fix vet failing on Go tip

This commit is contained in:
Matthew Holt 2016-04-30 11:13:04 -06:00
parent d05dac8d2e
commit 96425f0f40
No known key found for this signature in database
GPG key ID: 0D97CC73664F4D03

View file

@ -38,14 +38,14 @@ func TestHeadersParse(t *testing.T) {
{`header /foo Foo "Bar Baz"`, {`header /foo Foo "Bar Baz"`,
false, []headers.Rule{ false, []headers.Rule{
{Path: "/foo", Headers: []headers.Header{ {Path: "/foo", Headers: []headers.Header{
{"Foo", "Bar Baz"}, {Name: "Foo", Value: "Bar Baz"},
}}, }},
}}, }},
{`header /bar { Foo "Bar Baz" Baz Qux }`, {`header /bar { Foo "Bar Baz" Baz Qux }`,
false, []headers.Rule{ false, []headers.Rule{
{Path: "/bar", Headers: []headers.Header{ {Path: "/bar", Headers: []headers.Header{
{"Foo", "Bar Baz"}, {Name: "Foo", Value: "Bar Baz"},
{"Baz", "Qux"}, {Name: "Baz", Value: "Qux"},
}}, }},
}}, }},
} }