Hi Evgeny,

Thanks for reporting this issue. It should be fixed in SVN trunk. I have
also trimmed spaces around parameter names when accessing them via
MediaType#getParameters().

Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com


-----Message d'origine-----
De : news [mailto:[email protected]] De la part de Evgeny Shepelyuk
Envoyé : jeudi 23 juillet 2009 10:01
À : [email protected]
Objet : Parameters of media-type

Hello,
I'm using Restlet 2.0m3
What i need is to receive following string of content-type in HTTP  
response.

Content-type: multipart/x-mixed-replace; boundary="My boundary"

When i'm using code like this

MediaType.valueOf(\"multipart/x-mixed-replace; boundary=\"My boundary\"")

i receive following in response

Content-Type: multipart/x-mixed-replace; boundary="My boundary";   
boundary="My boundary"

Also i cant add parameter programmaticaly since parameters are  
unmodifiable in MediaType class.
How can i solve my problem ?


-- 
Regards,
Evgeny Shepelyuk

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=23746
92

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2375514

Reply via email to