content type w/ charset patch

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

content type w/ charset patch

Alex Milowski-2
I've submitted a patch for a bug I just found where you can't
send a POST with the content type having a charset attribute.

For example,

   text/xml; charset=UTF-8

is not being recognized as XML.


Here's the patch:

Index: RESTServer.java
===================================================================
RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/http/RESTServer.java,v
retrieving revision 1.40
diff -r1.40 RESTServer.java
627a628,631
>             int semicolon = contentType.indexOf(';');
>             if (semicolon>0) {
>                contentType = contentType.substring(0,semicolon);
>             }


The request ID is #1338988

I've tested the patch and was able to make my application work again.

The latest snapshot looks pretty good! :)

--Alex Milowski



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open