aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib/src
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2014-03-31 13:53:00 +0200
committerThomas Lenz <tlenz@iaik.tugraz.at>2014-03-31 13:53:00 +0200
commiteeb3d0250cf5a873b67cb974d17913089fd9c925 (patch)
tree9f474977a92f317ee3e7cce7889d063a93dc000a /id/server/idserverlib/src
parente5d84e80b836ed0939e1546300d75fd93b637d8b (diff)
downloadmoa-id-spss-eeb3d0250cf5a873b67cb974d17913089fd9c925.tar.gz
moa-id-spss-eeb3d0250cf5a873b67cb974d17913089fd9c925.tar.bz2
moa-id-spss-eeb3d0250cf5a873b67cb974d17913089fd9c925.zip
add ContentType to PEPS request
Diffstat (limited to 'id/server/idserverlib/src')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/AuthenticationServer.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/AuthenticationServer.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/AuthenticationServer.java
index 45867c4e5..1bb829bab 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/AuthenticationServer.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/AuthenticationServer.java
@@ -1946,7 +1946,9 @@ public class AuthenticationServer implements MOAIDAuthConstants {
StringWriter writer = new StringWriter();
template.merge(context, writer);
+ resp.setContentType("text/html;charset=UTF-8");
resp.getOutputStream().write(writer.toString().getBytes());
+
} catch (Exception e) {
Logger.error("Error sending STORK SAML AuthnRequest.", e);
httpSession.invalidate();