aboutsummaryrefslogtreecommitdiff
path: root/id.server
diff options
context:
space:
mode:
authorrudolf <rudolf@d688527b-c9ab-4aba-bd8d-4036d912da1d>2004-06-28 20:38:51 +0000
committerrudolf <rudolf@d688527b-c9ab-4aba-bd8d-4036d912da1d>2004-06-28 20:38:51 +0000
commit8190d3992d831373e8d35b9883408d9ee09330dc (patch)
treeae4ed69f09b7784c38a62af8888e2a29f0b486dc /id.server
parent9dff645549ed968c9bff9b415c73ffa7c8fedd52 (diff)
downloadmoa-id-spss-8190d3992d831373e8d35b9883408d9ee09330dc.tar.gz
moa-id-spss-8190d3992d831373e8d35b9883408d9ee09330dc.tar.bz2
moa-id-spss-8190d3992d831373e8d35b9883408d9ee09330dc.zip
added charset in ContentType (RSCH)
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@139 d688527b-c9ab-4aba-bd8d-4036d912da1d
Diffstat (limited to 'id.server')
-rw-r--r--id.server/src/at/gv/egovernment/moa/id/auth/servlet/StartAuthenticationServlet.java2
-rw-r--r--id.server/src/at/gv/egovernment/moa/id/auth/servlet/VerifyIdentityLinkServlet.java4
2 files changed, 4 insertions, 2 deletions
diff --git a/id.server/src/at/gv/egovernment/moa/id/auth/servlet/StartAuthenticationServlet.java b/id.server/src/at/gv/egovernment/moa/id/auth/servlet/StartAuthenticationServlet.java
index 6308742bf..6098f5138 100644
--- a/id.server/src/at/gv/egovernment/moa/id/auth/servlet/StartAuthenticationServlet.java
+++ b/id.server/src/at/gv/egovernment/moa/id/auth/servlet/StartAuthenticationServlet.java
@@ -58,7 +58,7 @@ public class StartAuthenticationServlet extends AuthServlet {
try {
String getIdentityLinkForm =
AuthenticationServer.getInstance().startAuthentication(authURL, target, oaURL, templateURL, bkuURL, sessionID);
- resp.setContentType("text/html");
+ resp.setContentType("text/html;charset=UTF-8");
PrintWriter out = new PrintWriter(resp.getOutputStream());
out.print(getIdentityLinkForm);
out.flush();
diff --git a/id.server/src/at/gv/egovernment/moa/id/auth/servlet/VerifyIdentityLinkServlet.java b/id.server/src/at/gv/egovernment/moa/id/auth/servlet/VerifyIdentityLinkServlet.java
index 00ec57e83..8253c804d 100644
--- a/id.server/src/at/gv/egovernment/moa/id/auth/servlet/VerifyIdentityLinkServlet.java
+++ b/id.server/src/at/gv/egovernment/moa/id/auth/servlet/VerifyIdentityLinkServlet.java
@@ -79,7 +79,9 @@ public class VerifyIdentityLinkServlet extends AuthServlet {
String dataURL = new DataURLBuilder().buildDataURL(
session.getAuthURL(), AuthenticationServer.REQ_VERIFY_AUTH_BLOCK, sessionID);
resp.addHeader("Location", dataURL);
- resp.setContentType("text/xml");
+
+ //TODO test impact of explicit setting charset with older versions of BKUs (HotSign)
+ resp.setContentType("text/xml;charset=UTF-8");
// debug output
if(null != createXMLSignatureRequest)
OutputXML2File.debugOutputXML2File("CreateXMLSignatureRequest.xml", createXMLSignatureRequest, MOAIDAuthConstants.DEBUG_OUTPUT_HIERARCHY);