diff options
author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2016-05-09 16:06:56 +0200 |
---|---|---|
committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2016-05-09 16:06:56 +0200 |
commit | c3e07d7fb87b2d132ffc838e4878b9479da361a7 (patch) | |
tree | f952959a0e5e97316590762e21399f12ab76924d /id/server/modules/moa-id-module-eIDAS/src | |
parent | 8175d726cecf103b3a433313f4d2ef54d09ebadf (diff) | |
download | moa-id-spss-c3e07d7fb87b2d132ffc838e4878b9479da361a7.tar.gz moa-id-spss-c3e07d7fb87b2d132ffc838e4878b9479da361a7.tar.bz2 moa-id-spss-c3e07d7fb87b2d132ffc838e4878b9479da361a7.zip |
fix ContentType typo, which make problems with IE11 in some casesMOA-ID-3.1.1
Diffstat (limited to 'id/server/modules/moa-id-module-eIDAS/src')
-rw-r--r-- | id/server/modules/moa-id-module-eIDAS/src/main/java/at/gv/egovernment/moa/id/auth/modules/eidas/tasks/GenerateAuthnRequestTask.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/id/server/modules/moa-id-module-eIDAS/src/main/java/at/gv/egovernment/moa/id/auth/modules/eidas/tasks/GenerateAuthnRequestTask.java b/id/server/modules/moa-id-module-eIDAS/src/main/java/at/gv/egovernment/moa/id/auth/modules/eidas/tasks/GenerateAuthnRequestTask.java index c82636a8f..30c206025 100644 --- a/id/server/modules/moa-id-module-eIDAS/src/main/java/at/gv/egovernment/moa/id/auth/modules/eidas/tasks/GenerateAuthnRequestTask.java +++ b/id/server/modules/moa-id-module-eIDAS/src/main/java/at/gv/egovernment/moa/id/auth/modules/eidas/tasks/GenerateAuthnRequestTask.java @@ -35,6 +35,8 @@ import org.apache.velocity.VelocityContext; import org.apache.velocity.app.VelocityEngine; import org.springframework.stereotype.Component; +import com.google.common.net.MediaType; + import at.gv.egovernment.moa.id.advancedlogging.MOAIDEventConstants; import at.gv.egovernment.moa.id.auth.exception.AuthenticationException; import at.gv.egovernment.moa.id.auth.frontend.velocity.VelocityProvider; @@ -176,8 +178,8 @@ public class GenerateAuthnRequestTask extends AbstractAuthServletTask { Logger.debug("Template merge done"); Logger.debug("Sending html content: " + writer.getBuffer().toString()); - - response.setContentType("text/html;charset=UTF-8"); + + response.setContentType(MediaType.HTML_UTF_8.toString()); response.getOutputStream().write(writer.getBuffer().toString().getBytes("UTF-8")); revisionsLogger.logEvent(oaConfig, pendingReq, |