cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mi...@apache.org
Subject svn commit: r424248 - /cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/generation/StreamGenerator.java
Date Fri, 21 Jul 2006 09:59:23 GMT
Author: michi
Date: Fri Jul 21 02:59:20 2006
New Revision: 424248

URL: http://svn.apache.org/viewvc?rev=424248&view=rev
Log:
added missing application/xhtml+xml mime-type

Modified:
    cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/generation/StreamGenerator.java

Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/generation/StreamGenerator.java
URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/generation/StreamGenerator.java?rev=424248&r1=424247&r2=424248&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/generation/StreamGenerator.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/generation/StreamGenerator.java
Fri Jul 21 02:59:20 2006
@@ -49,7 +49,7 @@
  * sitemap parameter 'form-name'.
  *
  * For the POST requests with mimetypes: text/plain, text/xml,
- * application/xml the xml data is in the body of the POST request and
+ * application/xhtml+xml, application/xml the xml data is in the body of the POST request
and
  * its length is specified by the value returned by getContentLength()
  * method.  The StreamGenerator uses helper
  * org.apache.cocoon.util.PostInputStream class for InputStream
@@ -124,6 +124,7 @@
                 inputSource = new InputSource(xmlReader);
             } else if (contentType.startsWith("text/plain") ||
                     contentType.startsWith("text/xml") ||
+                    contentType.startsWith("application/xhtml+xml") ||
                     contentType.startsWith("application/xml")) {
 
                 HttpServletRequest httpRequest = (HttpServletRequest) objectModel.get(HttpEnvironment.HTTP_REQUEST_OBJECT);



Mime
View raw message