account_update_credentials uses PATCH, not POST

This commit is contained in:
Alex McGivern 2017-04-26 23:13:49 +01:00
pare 00998d6d46
commit 973182cda0

Veure arxiu

@ -646,7 +646,7 @@ class Mastodon:
'avatar' and 'header' are PNG images encoded in base64.
"""
params = self.__generate_params(locals())
return self.__api_request('POST', '/api/v1/accounts/update_credentials', params)
return self.__api_request('PATCH', '/api/v1/accounts/update_credentials', params)
###
# Writing data: Reports