You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by dk...@apache.org on 2011/10/12 05:05:06 UTC

svn commit: r1182181 - in /camel/branches/camel-2.8.x: ./ components/camel-jetty/src/main/java/org/apache/camel/component/jetty/ components/camel-jetty/src/test/java/org/apache/camel/component/jetty/jettyproducer/

Author: dkulp
Date: Wed Oct 12 03:05:06 2011
New Revision: 1182181

URL: http://svn.apache.org/viewvc?rev=1182181&view=rev
Log:
Merged revisions 1179889 via svnmerge from 
https://svn.apache.org/repos/asf/camel/trunk

........
  r1179889 | dvaleri | 2011-10-06 18:42:46 -0400 (Thu, 06 Oct 2011) | 1 line
  
  [CAMEL-4521] Apply the Camel message body content as the HTTP request body for HTTP PUT requests.  Patch applied with thanks to Rich Newcomb.
........

Added:
    camel/branches/camel-2.8.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/jettyproducer/JettyHttpProducerPutContentTest.java
      - copied unchanged from r1179889, camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/jettyproducer/JettyHttpProducerPutContentTest.java
Modified:
    camel/branches/camel-2.8.x/   (props changed)
    camel/branches/camel-2.8.x/components/camel-jetty/src/main/java/org/apache/camel/component/jetty/JettyHttpProducer.java

Propchange: camel/branches/camel-2.8.x/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: camel/branches/camel-2.8.x/components/camel-jetty/src/main/java/org/apache/camel/component/jetty/JettyHttpProducer.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.8.x/components/camel-jetty/src/main/java/org/apache/camel/component/jetty/JettyHttpProducer.java?rev=1182181&r1=1182180&r2=1182181&view=diff
==============================================================================
--- camel/branches/camel-2.8.x/components/camel-jetty/src/main/java/org/apache/camel/component/jetty/JettyHttpProducer.java (original)
+++ camel/branches/camel-2.8.x/components/camel-jetty/src/main/java/org/apache/camel/component/jetty/JettyHttpProducer.java Wed Oct 12 03:05:06 2011
@@ -98,8 +98,8 @@ public class JettyHttpProducer extends D
         // set query parameters
         doSetQueryParameters(exchange, httpExchange);
 
-        // if we post then set data
-        if (HttpMethods.POST.equals(methodToUse)) {
+        // if we post or put then set data
+        if (HttpMethods.POST.equals(methodToUse) || HttpMethods.PUT.equals(methodToUse)) {
 
             String contentType = ExchangeHelper.getContentType(exchange);
             if (contentType != null) {