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 2024/05/15 16:09:51 UTC

(tika) branch branch_2x updated: Tika 4137 (#1353)

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

tallison pushed a commit to branch branch_2x
in repository https://gitbox.apache.org/repos/asf/tika.git


The following commit(s) were added to refs/heads/branch_2x by this push:
     new 492bbc624 Tika 4137 (#1353)
492bbc624 is described below

commit 492bbc624fd3ed6c9106b50896c23e43bb662108
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>
    (cherry picked from commit 72a81a16e39848dc15202f7e6f8d23661264dc13)
---
 .../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 868af43dc..6332d3251 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) {