From 01f3c42ba43f674b7a5b8ebd90762326d56eaf4e Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Fri, 3 Feb 2017 08:28:09 +0100 Subject: fix wrong html content-type value in eIDAS metadata response --- .../at/gv/egovernment/moa/id/protocols/eidas/EidasMetaDataRequest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'id/server/modules') diff --git a/id/server/modules/moa-id-module-eIDAS/src/main/java/at/gv/egovernment/moa/id/protocols/eidas/EidasMetaDataRequest.java b/id/server/modules/moa-id-module-eIDAS/src/main/java/at/gv/egovernment/moa/id/protocols/eidas/EidasMetaDataRequest.java index 174fa2c17..aada999db 100644 --- a/id/server/modules/moa-id-module-eIDAS/src/main/java/at/gv/egovernment/moa/id/protocols/eidas/EidasMetaDataRequest.java +++ b/id/server/modules/moa-id-module-eIDAS/src/main/java/at/gv/egovernment/moa/id/protocols/eidas/EidasMetaDataRequest.java @@ -76,9 +76,10 @@ public class EidasMetaDataRequest implements IAction { Logger.trace(metaData); - httpResp.setContentType(MediaType.APPLICATION_XML.getType()); + httpResp.setContentType(MediaType.APPLICATION_XML.toString()); httpResp.getWriter().print(metaData); httpResp.flushBuffer(); + } catch (Exception e) { Logger.error("eIDAS Metadata generation FAILED.", e); throw new MOAIDException("eIDAS.05", new Object[]{e.getMessage()}, e); -- cgit v1.2.3