Re: Media-type containing semi-colon but no parameter

* Julian Reschke wrote:
>On 2011-07-04 15:49, Anne van Kesteren wrote:
>> Currently per HTTP the following constitutes an incorrect Content-Type
>> header:
>>
>> Content-Type: text/html;

>Have you seen header field instances like this in the wild?

Among 130 000 headers I have laying around (sample is probably loading
a bunch of random documents linked from Wikipedia using CutyCapt):

  % grep -ai "content-type" headers_ | grep -P ";$" | gnusort | uniq -c
      3 Content-Type: application/x-javascript;
      1 Content-Type: image/jpeg;
      1 Content-Type: text/css;
      1 Content-Type: text/html; charset=ISO-8859-1;
      1 Content-Type: text/html; charset=shift-jis;
      3 Content-Type: text/javascript;

I agree the syntax as it is complicates implementations for no reason.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 

Received on Monday, 4 July 2011 22:48:10 UTC