From: Wolfgang M. M. <wol...@us...> - 2004-08-06 15:32:18
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/http/servlets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18108/src/org/exist/http/servlets Modified Files: XQueryServlet.java Log Message: Applied patch to improve content type handling. Index: XQueryServlet.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/http/servlets/XQueryServlet.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** XQueryServlet.java 6 Aug 2004 15:30:17 -0000 1.10 --- XQueryServlet.java 6 Aug 2004 15:32:08 -0000 1.11 *************** *** 205,223 **** //------------------------------- - String contentType = this.contentType; - try { - contentType = getServletContext().getMimeType(path); - if (contentType == null) - contentType = this.contentType; - } - catch (Throwable e) { - contentType = this.contentType; - } - finally { - if (contentType.startsWith("text/") || (contentType.endsWith("+xml"))) - contentType += ";charset=" + formEncoding; - response.setContentType(contentType ); - } - String baseURI = request.getRequestURI(); int p = baseURI.lastIndexOf('/'); --- 205,208 ---- |