W3C home > Mailing lists > Public > ietf-http-wg@w3.org > April to June 2010

Re: Handling multiple headers when only one is allowed

From: Adam Barth <ietf@adambarth.com>
Date: Thu, 17 Jun 2010 22:29:27 -0700
Message-ID: <AANLkTinAMm8qEuQPzfroZ0Dgx-uauDghYxk5DfWomMGL@mail.gmail.com>
To: Adrien de Croy <adrien@qbik.com>
Cc: Bil Corry <bil@corry.biz>, HTTP Working Group <ietf-http-wg@w3.org>, Michal Zalewski <lcamtuf@google.com>, Jeff Hodges <Jeff.Hodges@kingsmountain.com>, "Yngve N. Pettersen (Developer Opera Software ASA)" <yngve@opera.com>
On Tue, Jun 8, 2010 at 5:36 PM, Adrien de Croy <adrien@qbik.com> wrote:
> Or 2 or more different Content-Type headers, or even conflicting charsets.
>  Or multiple Content-Encoding headers.

For multiple Content-Type headers, the most compatible behavior is to
use the last header.  I've seen several examples where using the last
header is required to process the response as the sender intended.
This information is document in draft-abarth-mime-sniff.

Adam
Received on Friday, 18 June 2010 05:30:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 06:51:20 GMT