servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r726712 - /servicemix/components/bindings/servicemix-http/trunk/src/main/java/org/apache/servicemix/http/endpoints/HttpSoapProviderMarshaler.java
Date Mon, 15 Dec 2008 15:24:05 GMT
Author: gnodet
Date: Mon Dec 15 07:24:05 2008
New Revision: 726712

URL: http://svn.apache.org/viewvc?rev=726712&view=rev
Log:
SM-1733: servicemix-http provider endpoint may convey incorrect http headers, leading to problems
(revert previous fix)

Modified:
    servicemix/components/bindings/servicemix-http/trunk/src/main/java/org/apache/servicemix/http/endpoints/HttpSoapProviderMarshaler.java

Modified: servicemix/components/bindings/servicemix-http/trunk/src/main/java/org/apache/servicemix/http/endpoints/HttpSoapProviderMarshaler.java
URL: http://svn.apache.org/viewvc/servicemix/components/bindings/servicemix-http/trunk/src/main/java/org/apache/servicemix/http/endpoints/HttpSoapProviderMarshaler.java?rev=726712&r1=726711&r2=726712&view=diff
==============================================================================
--- servicemix/components/bindings/servicemix-http/trunk/src/main/java/org/apache/servicemix/http/endpoints/HttpSoapProviderMarshaler.java
(original)
+++ servicemix/components/bindings/servicemix-http/trunk/src/main/java/org/apache/servicemix/http/endpoints/HttpSoapProviderMarshaler.java
Mon Dec 15 07:24:05 2008
@@ -108,11 +108,9 @@
         httpExchange.setMethod(HttpMethods.POST);
         httpExchange.setURL(baseUrl);
         httpExchange.setRequestContent(new ByteArrayBuffer(baos.toByteArray()));
-        // Do not include additional headers for now as it causes problems
-        // when the exchange comes from an HTTP request
-//        for (Map.Entry<String,String> entry : msg.getTransportHeaders().entrySet())
{
-//            httpExchange.addRequestHeader(entry.getKey(), entry.getValue());
-//        }
+        for (Map.Entry<String,String> entry : msg.getTransportHeaders().entrySet())
{
+            httpExchange.addRequestHeader(entry.getKey(), entry.getValue());
+        }
         /*
         httpExchange.setRequestEntity(new Entity() {
             public void write(OutputStream os, Writer w) throws IOException {



Mime
View raw message