From 589a64b447a047eaf9a39975a8840b3fec11555b Mon Sep 17 00:00:00 2001 From: Sayyid Hamid Mahdavi Date: Tue, 3 Feb 2026 14:27:00 +0330 Subject: [PATCH] i18n --- apps/gooyal_oauth2/views/introspect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/gooyal_oauth2/views/introspect.py b/apps/gooyal_oauth2/views/introspect.py index fca06b1..0f4a99a 100644 --- a/apps/gooyal_oauth2/views/introspect.py +++ b/apps/gooyal_oauth2/views/introspect.py @@ -161,7 +161,7 @@ class TokenView(OAuthLibMixin, View): token_checksum = hashlib.sha256(access_token.encode("utf-8")).hexdigest() token = get_access_token_model().objects.get(token_checksum=token_checksum) app_authorized.send(sender=self, request=request, token=token) - response = HttpResponse(content=body, status=status) + response = HttpResponse(content=json.dumps(content), status=status) for k, v in headers.items(): response[k] = v