Re: JSON headers

On 11 July 2016 at 15:25, Willy Tarreau <w@1wt.eu> wrote:

> On Mon, Jul 11, 2016 at 09:11:09PM +0200, Julian Reschke wrote:
>
> OK thanks for explaining. But then what situation could lead to this
> confusing object to be emitted ? I thought that it was only related to
> posting multiple headers in which case I don't see the issue if we
> consider that all these headers are lists, and are then concatenated
> by the recipient.
>
>
If, for example, a sender sends a request such as

{ ..., "Accept":
"application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5",
..., "Accept": "text/plain;q=0.9", ... }

through a clumsy string concatenation, what is the suggested behavior?

Received on Monday, 11 July 2016 19:48:19 UTC