camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [1/3] camel git commit: Update StreamProducer to handle streaming using URLConnection
Date Sat, 26 Nov 2016 15:25:41 GMT
Repository: camel
Updated Branches:
  refs/heads/camel-2.17.x 9e4e70bc0 -> 37088c759
  refs/heads/camel-2.18.x 7a4ab4f2a -> 823281978
  refs/heads/master 72a09b002 -> b41b94864


Update StreamProducer to handle streaming using URLConnection


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/b41b9486
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/b41b9486
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/b41b9486

Branch: refs/heads/master
Commit: b41b948644d1462d7f02f4f73302c1a70eaa75c6
Parents: 72a09b0
Author: Nikhil Vibhav <nikhil92ind@gmail.com>
Authored: Sat Nov 26 20:09:44 2016 +0530
Committer: Nikhil Vibhav <nikhil92ind@gmail.com>
Committed: Sat Nov 26 20:09:44 2016 +0530

----------------------------------------------------------------------
 .../main/java/org/apache/camel/component/stream/StreamProducer.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/b41b9486/components/camel-stream/src/main/java/org/apache/camel/component/stream/StreamProducer.java
----------------------------------------------------------------------
diff --git a/components/camel-stream/src/main/java/org/apache/camel/component/stream/StreamProducer.java
b/components/camel-stream/src/main/java/org/apache/camel/component/stream/StreamProducer.java
index deded3d..feb39cc 100644
--- a/components/camel-stream/src/main/java/org/apache/camel/component/stream/StreamProducer.java
+++ b/components/camel-stream/src/main/java/org/apache/camel/component/stream/StreamProducer.java
@@ -90,6 +90,7 @@ public class StreamProducer extends DefaultProducer {
 
         URL url = new URL(u);
         URLConnection c = url.openConnection();
+        c.setDoOutput(true);
         return c.getOutputStream();
     }
 


Mime
View raw message