diff options
Diffstat (limited to 'id/ConfigWebTool/src/main')
-rw-r--r-- | id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/auth/pvp2/servlets/BuildMetadata.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/auth/pvp2/servlets/BuildMetadata.java b/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/auth/pvp2/servlets/BuildMetadata.java index 5b413567a..7256d8688 100644 --- a/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/auth/pvp2/servlets/BuildMetadata.java +++ b/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/auth/pvp2/servlets/BuildMetadata.java @@ -285,12 +285,12 @@ public class BuildMetadata extends HttpServlet { transformer.transform(source, sr); sw.close(); - String metadataXML = sw.toString(); + byte[] metadataXML = sw.toString().getBytes("UTF-8"); response.setContentType("text/xml"); - response.getOutputStream().write(metadataXML.getBytes()); + response.setContentLength(metadataXML.length); + response.getOutputStream().write(metadataXML); - response.getOutputStream().close(); } catch (ConfigurationException e) { log.warn("Configuration can not be loaded.", e); |