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

This commit is contained in:
Danielle McLean 2017-11-03 11:51:34 +11:00
parent 92cd38cbb0
commit b658bf5c79
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5

View file

@ -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,