Hi Rickard, This was indeed a bug. It is now fixed in SVN 2.0 branch and trunk. Thanks for the report.
Regarding the TunnelService, it can automatically replace the "Accept" header sent by broken clients with a more sensible one, based in the "UserAgent" header value. See the TunnelService Javadocs for more details. Could you elaborate a bit more on what is lacking in ServerResource from your point of view? We have plans to support HATEOS more automatically in 2.2 so this might help. Any pointer to your suggested approach (UseCases?). Best regards, Jerome -- Restlet ~ Founder and Technical Lead ~ http://www.restlet.org Noelios Technologies ~ http://www.noelios.com -----Message d'origine----- De : Rickard Öberg [mailto:[email protected]] Envoyé : jeudi 2 décembre 2010 03:42 À : [email protected] Objet : Re: ClientInfo.getPreferredMediaType and Internet Explorer On 2010-12-02 04.03, Thierry Boileau wrote: > the current algorithm implemented in ConnegUtils#getPreferredMetadata > was a bit restrictive. It checked the presence of the preference (in > this case "*/*") inside the given list of supported metadatas. Having > said that, I'm quite confused. I'm not sure it will fit your need, > because it returns a metadata taken from the list of preferences (in > your case "*/*"), not from the supported ones, which seems in > contradiction with the javadocs... It needs to return a MediaType from the supported list, not the accepted ones (which could be generic, i.e. "*/*"). /Rickard ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2687160 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2687232

