Skip to content

Commit cd8b942

Browse files
committed
Bugfix: application/xml response should be text/html
1 parent c5395ee commit cd8b942

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

user-manager/service/src/main/java/com/peterphi/usermanager/rest/impl/UserManagerOAuthServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public Response getAuth(final String responseType,
160160
call.set("scope", scope);
161161
call.set("state", state);
162162

163-
return call.process(Response.ok().type(MediaType.APPLICATION_XML).cacheControl(CacheControl.valueOf(NO_CACHE)));
163+
return call.process(Response.ok().type(MediaType.TEXT_HTML).cacheControl(CacheControl.valueOf(NO_CACHE)));
164164
}
165165
}
166166

0 commit comments

Comments
 (0)