You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ti...@apache.org on 2026/03/30 19:24:58 UTC
(tika) branch TIKA-4704-3 created (now 8cfa5826b6)
This is an automated email from the ASF dual-hosted git repository.
tilman pushed a change to branch TIKA-4704-3
in repository https://gitbox.apache.org/repos/asf/tika.git
at 8cfa5826b6 [TIKA-4704] close input
This branch includes the following new commits:
new 8cfa5826b6 [TIKA-4704] close input
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(tika) 01/01: [TIKA-4704] close input
Posted by ti...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
tilman pushed a commit to branch TIKA-4704-3
in repository https://gitbox.apache.org/repos/asf/tika.git
commit 8cfa5826b6a1baf1f65e11b72829b18ceec6b1d5
Author: Tilman Hausherr <ti...@snafu.de>
AuthorDate: Mon Mar 30 21:24:50 2026 +0200
[TIKA-4704] close input
---
.../test/java/org/apache/tika/pipes/fetcher/http/HttpFetcherTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tika-pipes/tika-pipes-plugins/tika-pipes-http/src/test/java/org/apache/tika/pipes/fetcher/http/HttpFetcherTest.java b/tika-pipes/tika-pipes-plugins/tika-pipes-http/src/test/java/org/apache/tika/pipes/fetcher/http/HttpFetcherTest.java
index 24a7fd18fc..6a51e85704 100644
--- a/tika-pipes/tika-pipes-plugins/tika-pipes-http/src/test/java/org/apache/tika/pipes/fetcher/http/HttpFetcherTest.java
+++ b/tika-pipes/tika-pipes-plugins/tika-pipes-http/src/test/java/org/apache/tika/pipes/fetcher/http/HttpFetcherTest.java
@@ -213,7 +213,7 @@ class HttpFetcherTest extends TikaTest {
headersMapFromConfig.put("fromFetchConfig2", List.of("fromFetchConfigValue2", "fromFetchConfigValue3"));
httpFetcher.getHttpFetcherConfig().getHttpRequestHeaders().setMap(headersMapFromConfig);
- httpFetcher.fetch("http://localhost", metadata, parseContext);
+ httpFetcher.fetch("http://localhost", metadata, parseContext).close();
HttpGet httpGet = httpGetArgumentCaptor.getValue();
Assertions.assertEquals("fromFetchRequestValue1", httpGet.getHeaders("fromFetchRequestHeader1")[0].getValue());
List<String> fromFetchRequestHeader2s = Arrays.stream(httpGet.getHeaders("fromFetchRequestHeader2"))
@@ -234,7 +234,7 @@ class HttpFetcherTest extends TikaTest {
Assertions.assertEquals("fromFetchConfigValue3", fromFetchConfig2s.get(1));
metadata.set(Property.externalText("httpRequestHeaders"), new String[] {" nick1 : val1", "nick2: val2"});
- httpFetcher.fetch("http://localhost", metadata, parseContext);
+ httpFetcher.fetch("http://localhost", metadata, parseContext).close();
httpGet = httpGetArgumentCaptor.getValue();
Assertions.assertEquals("val1", httpGet.getHeaders("nick1")[0].getValue());
Assertions.assertEquals("val2", httpGet.getHeaders("nick2")[0].getValue());