A successful request to /auth/invalidate-sessions will result in an HTTP 204 response being returned.
The HTTP 204 response will have a Content-Type header when it shouldn't have this header.
A simple fix would be to remove the empty dictionary from the POST Response in the InvalidateSessions and InvalidateRefreshTokens class:
Current line 281 in views.pyreturn Response({}, status=HTTP_204_NO_CONTENT)
Can be fixed with:
return Response(status=HTTP_204_NO_CONTENT)
A successful request to /auth/invalidate-sessions will result in an HTTP 204 response being returned. The HTTP 204 response will have a Content-Type header when it shouldn't have this header.
A simple fix would be to remove the empty dictionary from the POST Response in the InvalidateSessions and InvalidateRefreshTokens class:
Current line 281 in views.py
return Response({}, status=HTTP_204_NO_CONTENT)
Can be fixed with:
return Response(status=HTTP_204_NO_CONTENT)