Skip to content
Snippets Groups Projects
Commit fc11c866 authored by Dustin Jenkins's avatar Dustin Jenkins
Browse files

Story 1662: Use new /ac login features.

parent ba23b978
No related branches found
No related tags found
No related merge requests found
......@@ -173,13 +173,14 @@ public class UsersServlet extends HttpServlet
{
final String requestedContentType = request.getHeader("Accept");
if (!UsersAction.JSON_CONTENT_TYPE.equals(requestedContentType))
if (StringUtil.hasText(requestedContentType)
&& requestedContentType.contains(UsersAction.JSON_CONTENT_TYPE))
{
return UsersAction.DEFAULT_CONTENT_TYPE;
return UsersAction.JSON_CONTENT_TYPE;
}
else
{
return requestedContentType;
return UsersAction.DEFAULT_CONTENT_TYPE;
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment