W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2009

[whatwg] First or last Content-Type header?

From: Den.Molib <den.molib@gmail.com>
Date: Mon, 01 Jun 2009 23:55:51 +0200
Message-ID: <4A244E67.3080707@gmail.com>
The only case of double headers I can think of is when using scripts
that set a content-type, then try to set it again and the language
itself don't prevent it.
I think the "right" option in such case would be to follow the last one,
as it's the one provided nearer the content.
So I vote for using the last one.


PS: Interestingly, this behavior could be used to send xhtml (and get it
shown on IE) without sending different headers to each browser:
Content-Type: text/html
Content-Type: application/xhtml+xml
Received on Monday, 1 June 2009 14:55:51 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:12 UTC