Skip to content

Fix content types of UserController#loginUser and UserController#logoutUser#110

Open
Jankoekenpan wants to merge 1 commit intoswagger-api:masterfrom
Jankoekenpan:fix/UserController-Content-Types
Open

Fix content types of UserController#loginUser and UserController#logoutUser#110
Jankoekenpan wants to merge 1 commit intoswagger-api:masterfrom
Jankoekenpan:fix/UserController-Content-Types

Conversation

@Jankoekenpan
Copy link
Copy Markdown

Currently, the response bodies for the endpoints GET /user/login and GET /user/logout always answer with a plain string, hence the media type should be made independent of the incoming request. This PR fixes this issue by replacing Util.getMediaType(request) with the constant MediaType.TEXT_PLAIN in the corresponding Java methods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant