From b658bf5c79b07f58e765a0a4a8a44f296d20f0e9 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Fri, 3 Nov 2017 11:51:34 +1100 Subject: [PATCH] Default to form encoding rather than JSON, since legacy clients that don't support JSON usually also don't ask for a certain format --- lemonauth/views/indie.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lemonauth/views/indie.py b/lemonauth/views/indie.py index 9993d5e..a66cf16 100644 --- a/lemonauth/views/indie.py +++ b/lemonauth/views/indie.py @@ -109,8 +109,8 @@ class IndieView(TemplateView): # If we got here, it's valid! Yay! return utils.choose_type(request, {'me': code['me']}, { - 'application/json': JsonResponse, 'application/x-www-form-urlencoded': utils.form_encoded_response, + 'application/json': JsonResponse, })