This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 096ec2aa953065fca5141d415d74eaf00e5aa637
Author: Claus Ibsen <[email protected]>
AuthorDate: Sun Aug 4 11:50:27 2019 +0200

    Polished
---
 .../java/org/apache/camel/dataformat/zipfile/ZipFileDataFormat.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/ZipFileDataFormat.java
 
b/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/ZipFileDataFormat.java
index d78b8d4..fe889f5 100644
--- 
a/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/ZipFileDataFormat.java
+++ 
b/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/ZipFileDataFormat.java
@@ -80,7 +80,7 @@ public class ZipFileDataFormat extends ServiceSupport 
implements DataFormat, Dat
         }
 
         String newFilename = filename + ".zip";
-        exchange.getOut().setHeader(FILE_NAME, newFilename);
+        exchange.getMessage().setHeader(FILE_NAME, newFilename);
     }
 
     @Override
@@ -96,7 +96,7 @@ public class ZipFileDataFormat extends ServiceSupport 
implements DataFormat, Dat
             try {
                 ZipEntry entry = zis.getNextEntry();
                 if (entry != null) {
-                    exchange.getOut().setHeader(FILE_NAME, entry.getName());
+                    exchange.getMessage().setHeader(FILE_NAME, 
entry.getName());
                     IOHelper.copy(zis, osb);
                 }
 

Reply via email to