You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by gn...@apache.org on 2008/12/15 16:24:05 UTC
svn commit: r726712 -
/servicemix/components/bindings/servicemix-http/trunk/src/main/java/org/apache/servicemix/http/endpoints/HttpSoapProviderMarshaler.java
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 {