Describe the bug
The server is currently returning content type of application/json in some situations when no JSON is returned, for example the logout endpoint does this:
res.status(HttpStatusCodes.OK).json(response);
This is not correct, as response is always void in this scenario. In these cases the server should use sendStatus instead and should not send application/json as the content type.
This is causing difficulty when writing a client which can automatically detect and parse the response data based on the content type headers.
Describe the bug The server is currently returning content type of
application/json
in some situations when no JSON is returned, for example the logout endpoint does this:This is not correct, as
response
is always void in this scenario. In these cases the server should usesendStatus
instead and should not sendapplication/json
as the content type.This is causing difficulty when writing a client which can automatically detect and parse the response data based on the content type headers.