Passing multiple headers via configuration file is broken
Slack thread: https://gitlab.slack.com/archives/C1BSEQ138/p1610950227003200
Essentially, it is impossible to pass multiple headers via configuration file. The string before first colon (:
) becomes the key and rest of the string becomes the value, without considering the comma delimiter.
The following scenarios happen
-
header=FOOBAR:123,ASDF:345
in config file. Header becameFOOBAR
and value became123,ASDF:345
-
header="FOOBAR:123,ASDF:345"
in config file. Header became"FOOBAR
and value became123,ASDF:345"
-
header="FOOBAR:123","ASDF:345"
in config file. Header became"FOOBAR
and value became123,"ASDF:345"
Also, we might want to think on how delimiter will be escaped. That is, how to have something like RANGE: 10,20
as a header where 10,20
(including comma) is the value.