Browse Source

Default to form encoding rather than JSON, since legacy clients that don't support JSON usually also don't ask for a certain format

pull/1/head
Danielle McLean 4 years ago
parent
commit
b658bf5c79
Signed by: 00dani GPG Key ID: 5A5D2D1AFF12EEC5
  1. 2
      lemonauth/views/indie.py

2
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,
})

Loading…
Cancel
Save