aboutsummaryrefslogtreecommitdiff
path: root/id/server/modules/moa-id-module-eIDAS/src/main/java/at
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2017-02-03 08:28:09 +0100
committerThomas Lenz <tlenz@iaik.tugraz.at>2017-02-03 08:28:09 +0100
commit01f3c42ba43f674b7a5b8ebd90762326d56eaf4e (patch)
treed0336cb77f95d5dbdb3477d425d4320eca0f1776 /id/server/modules/moa-id-module-eIDAS/src/main/java/at
parent4b6044fc69410020cf7a49308e1b0617eab9c5a7 (diff)
downloadmoa-id-spss-01f3c42ba43f674b7a5b8ebd90762326d56eaf4e.tar.gz
moa-id-spss-01f3c42ba43f674b7a5b8ebd90762326d56eaf4e.tar.bz2
moa-id-spss-01f3c42ba43f674b7a5b8ebd90762326d56eaf4e.zip
fix wrong html content-type value in eIDAS metadata response
Diffstat (limited to 'id/server/modules/moa-id-module-eIDAS/src/main/java/at')
-rw-r--r--id/server/modules/moa-id-module-eIDAS/src/main/java/at/gv/egovernment/moa/id/protocols/eidas/EidasMetaDataRequest.java3
1 files changed, 2 insertions, 1 deletions
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);