5 janvier 2010 12:02
À : discuss@restlet.tigris.org
Objet : Re: Bug in MediaType Parameter handling
Hello Carsten,
the current contract of the valueOf method is to use a "name" such as
"application/atom+xml" instead of a complete string with the parameters.
In your case, you
Hello Carsten,
the current contract of the valueOf method is to use a "name" such as
"application/atom+xml" instead of a complete string with the parameters.
In your case, you can use the ContentType constructor with the String
parameter.
Best regards,
Thierry Boileau
> Hi,
>
> when I do the f
Hi,
when I do the following:
---
MediaType mediaType = MediaType.valueOf("application/atom+xml; charset=UTF-8");
System.out.println(mediaType.toString());
---
I get this output (with 2.0M6):
application/atom+xml; charset=UTF-8; charset=UTF-8
Seems to be a bug in the handling of parameters.
Cheer
3 matches
Mail list logo