Re: Format for type attribute value

Henri Sivonen wrote:
> On Nov 19, 2007, at 21:45, Julian Reschke wrote:
> 
>> Multiple media-type values? What would that be good for? Pointer?
> 
> 
> http://mxr.mozilla.org/firefox/source/netwerk/base/src/nsURLHelper.cpp#834

That looks like a bug to me. Content-Type takes a single media type, period:

	Content-Type   = "Content-Type" ":" media-type

and

     media-type     = type "/" subtype *( ";" parameter )
     type           = token
     subtype        = token

-- <http://greenbytes.de/tech/webdav/rfc2616.html#rfc.section.14.17>,
<http://greenbytes.de/tech/webdav/rfc2616.html#rfc.section.3.7>.

Maybe that code fragment is also used for "Accept"? ...:

     Accept         = "Accept" ":"
                      #( media-range [ accept-params ] )

     media-range    = ( "*/*"
                      | ( type "/" "*" )
                      | ( type "/" subtype )
                      ) *( ";" parameter )
     accept-params  = ";" "q" "=" qvalue *( accept-extension )
     accept-extension = ";" token [ "=" ( token | quoted-string ) ]

-- <http://greenbytes.de/tech/webdav/rfc2616.html#rfc.section.14.1>

?

Best regards, Julian

Received on Monday, 19 November 2007 20:39:22 UTC