summaryrefslogtreecommitdiff
path: root/eaaf_modules/eaaf_module_auth_sl20/src
diff options
context:
space:
mode:
authorThomas <>2023-09-07 19:37:18 +0200
committerThomas <>2023-09-07 19:37:18 +0200
commitd406280d08066d4c269899a49eb8b275a747044b (patch)
tree8934a5a86caeec38a14061fdb6ee0ccbbcfa4223 /eaaf_modules/eaaf_module_auth_sl20/src
parent89318f8c4377ce852574a9f4daa2b9940f2cc42d (diff)
downloadEAAF-Components-d406280d08066d4c269899a49eb8b275a747044b.tar.gz
EAAF-Components-d406280d08066d4c269899a49eb8b275a747044b.tar.bz2
EAAF-Components-d406280d08066d4c269899a49eb8b275a747044b.zip
fix(sl20): add missing ContentType header on SL2.0 error response
Diffstat (limited to 'eaaf_modules/eaaf_module_auth_sl20/src')
-rw-r--r--eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/tasks/AbstractReceiveQualEidTask.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/tasks/AbstractReceiveQualEidTask.java b/eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/tasks/AbstractReceiveQualEidTask.java
index 3733c847..7ba58108 100644
--- a/eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/tasks/AbstractReceiveQualEidTask.java
+++ b/eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/tasks/AbstractReceiveQualEidTask.java
@@ -5,6 +5,7 @@ import java.util.Map;
import org.apache.commons.fileupload2.core.FileUploadException;
import org.apache.commons.lang3.StringUtils;
+import org.apache.hc.core5.http.ContentType;
import org.jose4j.base64url.Base64Url;
import org.springframework.beans.factory.annotation.Autowired;
@@ -68,6 +69,7 @@ public abstract class AbstractReceiveQualEidTask extends AbstractAuthServletTask
log.debug("Received SL2.0 result: " + sl20Result);
}
try {
+ response.setContentType(ContentType.APPLICATION_JSON.toString());
response.sendError(500, "Internal Server Error.");
} catch (final IOException e1) {