chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1222630 - /chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/http/HttpUtils.java
Date Fri, 23 Dec 2011 10:21:55 GMT
Author: fmui
Date: Fri Dec 23 10:21:55 2011
New Revision: 1222630

URL: http://svn.apache.org/viewvc?rev=1222630&view=rev
Log:
Fixed problem with multiple values for one HTTP header

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=1222630&r1=1222629&r2=1222630&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
Fri Dec 23 10:21:55 2011
@@ -114,7 +114,7 @@ public class HttpUtils {
             // set other headers
             if (headers != null) {
                 for (Map.Entry<String, String> header : headers.entrySet()) {
-                    conn.setRequestProperty(header.getKey(), header.getValue());
+                    conn.addRequestProperty(header.getKey(), header.getValue());
                 }
             }
 
@@ -126,7 +126,7 @@ public class HttpUtils {
                     for (Map.Entry<String, List<String>> header : httpHeaders.entrySet())
{
                         if (header.getValue() != null) {
                             for (String value : header.getValue()) {
-                                conn.setRequestProperty(header.getKey(), value);
+                                conn.addRequestProperty(header.getKey(), value);
                             }
                         }
                     }



Mime
View raw message