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:
parent
92cd38cbb0
commit
b658bf5c79
1 changed files with 1 additions and 1 deletions
|
@ -109,8 +109,8 @@ class IndieView(TemplateView):
|
||||||
|
|
||||||
# If we got here, it's valid! Yay!
|
# If we got here, it's valid! Yay!
|
||||||
return utils.choose_type(request, {'me': code['me']}, {
|
return utils.choose_type(request, {'me': code['me']}, {
|
||||||
'application/json': JsonResponse,
|
|
||||||
'application/x-www-form-urlencoded': utils.form_encoded_response,
|
'application/x-www-form-urlencoded': utils.form_encoded_response,
|
||||||
|
'application/json': JsonResponse,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue