Fix access log field parsing

This commit is contained in:
Brendan LE GLAUNEC 2018-10-29 16:24:04 +01:00 committed by Traefiker Bot
parent 450471d30a
commit 993caf5058
2 changed files with 18 additions and 0 deletions

View file

@ -301,6 +301,14 @@ func TestFieldsHeadersNamesSet(t *testing.T) {
"X-HEADER-2": "bar",
},
},
{
desc: "Two values separated by space with escaped double quotes should return FieldNames of size 2",
value: "\"X-HEADER-1=foo X-HEADER-2=bar\"",
expected: &FieldHeaderNames{
"X-HEADER-1": "foo",
"X-HEADER-2": "bar",
},
},
}
for _, test := range testCases {