drewr/postal

Unable to send multiple headers with same key, but different value

Opened this issue · 1 comments

I'm trying to set multiple tags in mailgun using the X-Mailgun-Tag header, and it expects each tag to be sent in a different header.

Since maps only allow one value per key, it would be nice to maybe support seqs as values in the message map for extra headers, e.g.:

{ "X-Mailgun-Tag" ["foo" "bar"] }

Ideally this would add a header for each value in the seq.

Please see this commit/branch if you still would like to be able to do this:

https://github.com/osbert/postal/tree/allow-header-splitting