Skip to content

Commit 33d1042

Browse files
sberyozkinCopilot
andauthored
Update extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/AuthenticationRedirectExceptionMapper.java
Co-authored-by: Copilot <[email protected]>
1 parent 72415ac commit 33d1042

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/AuthenticationRedirectExceptionMapper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ public Response toResponse(AuthenticationRedirectException ex) {
2323
if (ex.getCode() == 200) {
2424
// The target URL is embedded in the auto-submitted form post payload
2525
log.debugf("Form post redirect to %s", ex.getRedirectUri());
26-
builder.entity(ex.getRedirectUri());
26+
builder.entity(ex.getRedirectUri())
27+
.type("text/html; charset=UTF-8");
2728
} else {
2829
log.debugf("Redirect to %s ", ex.getRedirectUri());
2930
builder.header(HttpHeaders.LOCATION, ex.getRedirectUri());

0 commit comments

Comments
 (0)