Author: fmui
Date: Tue Sep 4 11:32:40 2012
New Revision: 1380568
URL: http://svn.apache.org/viewvc?rev=1380568&view=rev
Log:
Client: get error content if MIME type is application/xml
Modified:
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/http/HttpUtils.java
Modified:
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/http/HttpUtils.java
URL:
http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/http/HttpUtils.java?rev=1380568&r1=1380567&r2=1380568&view=diff
==============================================================================
---
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/http/HttpUtils.java
(original)
+++
chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/http/HttpUtils.java
Tue Sep 4 11:32:40 2012
@@ -270,6 +270,7 @@ public class HttpUtils {
if (contentType != null) {
String contentTypeLower =
contentType.toLowerCase().split(";")[0];
if (contentTypeLower.startsWith("text/") ||
contentTypeLower.endsWith("+xml")
+ || contentTypeLower.startsWith("application/xml")
||
contentTypeLower.startsWith("application/json")) {
StringBuilder sb = new StringBuilder();