You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ta...@apache.org on 2023/09/22 13:29:11 UTC
[tika] branch main updated: Tika 4137 (#1353)
This is an automated email from the ASF dual-hosted git repository.
tallison pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tika.git
The following commit(s) were added to refs/heads/main by this push:
new 72a81a16e Tika 4137 (#1353)
72a81a16e is described below
commit 72a81a16e39848dc15202f7e6f8d23661264dc13
Author: Thorsten Heit <th...@gmx.de>
AuthorDate: Fri Sep 22 15:29:05 2023 +0200
Tika 4137 (#1353)
* TIKA-4137 -- Building current Tika main branch fails under Java 20/21
Authored-by: thorsten <th...@mbpvonthorsten.fritz.box>
---
.../src/main/java/org/apache/tika/server/core/resource/TikaResource.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/tika-server/tika-server-core/src/main/java/org/apache/tika/server/core/resource/TikaResource.java b/tika-server/tika-server-core/src/main/java/org/apache/tika/server/core/resource/TikaResource.java
index aadf86f30..2913e740b 100644
--- a/tika-server/tika-server-core/src/main/java/org/apache/tika/server/core/resource/TikaResource.java
+++ b/tika-server/tika-server-core/src/main/java/org/apache/tika/server/core/resource/TikaResource.java
@@ -676,6 +676,7 @@ public class TikaResource {
handler.getTransformer().setOutputProperty(OutputKeys.METHOD, format);
handler.getTransformer().setOutputProperty(OutputKeys.INDENT, "yes");
handler.getTransformer().setOutputProperty(OutputKeys.ENCODING, UTF_8.name());
+ handler.getTransformer().setOutputProperty(OutputKeys.VERSION, "1.1");
handler.setResult(new StreamResult(writer));
content = new ExpandedTitleContentHandler(handler);
} catch (TransformerConfigurationException e) {