jsr339-experts@jax-rs-spec.java.net

[jsr339-experts] getAcceptableMediaTypes() should return empty list

From: Bill Burke <bburke_at_redhat.com>
Date: Wed, 08 May 2013 17:54:21 -0400

I'm looking at:
com.sun.ts.tests.jaxrs.api.client.webtarget.JAXRSClient.requestNoArgTest();

It seems that it expects ClientRequestContext.getAcceptableMediaTypes()
to return "*/*" by default if there is no Accept header. Not sure I
agree with this. The Javadoc says it returns the *requested* media
types, i.e., what you specified in an Accept header. If there is no
accept header, then this method should return an empty list, IMO.
-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com