[camel] branch master updated: Update TikaProducer.java

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[camel] branch master updated: Update TikaProducer.java

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

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


The following commit(s) were added to refs/heads/master by this push:
     new e2bb5e7  Update TikaProducer.java
e2bb5e7 is described below

commit e2bb5e7d095a119d03aea8040d55e4fdcb4723fb
Author: elbaz michael <[hidden email]>
AuthorDate: Fri Oct 16 18:48:02 2020 +0200

    Update TikaProducer.java
   
    Close inputStream
---
 .../src/main/java/org/apache/camel/component/tika/TikaProducer.java      | 1 +
 1 file changed, 1 insertion(+)

diff --git a/components/camel-tika/src/main/java/org/apache/camel/component/tika/TikaProducer.java b/components/camel-tika/src/main/java/org/apache/camel/component/tika/TikaProducer.java
index eab34bd..222fba8 100644
--- a/components/camel-tika/src/main/java/org/apache/camel/component/tika/TikaProducer.java
+++ b/components/camel-tika/src/main/java/org/apache/camel/component/tika/TikaProducer.java
@@ -114,6 +114,7 @@ public class TikaProducer extends DefaultProducer {
         Metadata metadata = new Metadata();
         this.parser.parse(inputStream, contentHandler, metadata, context);
         convertMetadataToHeaders(metadata, exchange);
+        inputStream.close();
         return result;
     }