users@jsr311.java.net

Re: When to sort Accept header values

From: Stephan Koops <Stephan.Koops_at_web.de>
Date: Fri, 06 Feb 2009 23:28:56 +0100

Hi Sergey,

> Having such a compliant server reply with JSON when
> Accept : application/xml, application/json
>
> but with XML when
> Accept : application/xml, application/json;q=0.1
>
> seems lame :-)
>
> RI will reply with XML which seems perfectly normal to me and I'm not
> sure anyone will complain
This beahiour is ok according to HTTP. If you prefer xml, user
Accept: applicatio/xml;q=1,application/json;q=0.5

Or do I miss something?

best regards
   Stephan