diff options
author | Théo Le Calvar <[email protected]> | 2018-05-20 12:53:19 +0200 |
---|---|---|
committer | Théo Le Calvar <[email protected]> | 2018-05-20 12:53:19 +0200 |
commit | 1800a9b2c176cc5f8f3b34d36233206e49d088d7 (patch) | |
tree | eeaf2b837d5d4f8d4d9321449f7e13a409692ca6 | |
parent | f8ba37b42e529b90b10050610098cd648f3a3572 (diff) | |
download | mastodon.py-1800a9b2c176cc5f8f3b34d36233206e49d088d7.tar.gz |
Fix typo in account_update_credentials
Mime type of avatar was used to guess extension of header.
-rw-r--r-- | mastodon/Mastodon.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 5171d9b..527f1ac 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py | |||
@@ -1252,7 +1252,7 @@ class Mastodon: | |||
1252 | avatar_file_name = "mastodonpyupload_" + mimetypes.guess_extension(avatar_mime_type) | 1252 | avatar_file_name = "mastodonpyupload_" + mimetypes.guess_extension(avatar_mime_type) |
1253 | files["avatar"] = (avatar_file_name, avatar, avatar_mime_type) | 1253 | files["avatar"] = (avatar_file_name, avatar, avatar_mime_type) |
1254 | if not header is None: | 1254 | if not header is None: |
1255 | header_file_name = "mastodonpyupload_" + mimetypes.guess_extension(avatar_mime_type) | 1255 | header_file_name = "mastodonpyupload_" + mimetypes.guess_extension(header_mime_type) |
1256 | files["header"] = (header_file_name, header, header_mime_type) | 1256 | files["header"] = (header_file_name, header, header_mime_type) |
1257 | 1257 | ||
1258 | params = self.__generate_params(params_initial) | 1258 | params = self.__generate_params(params_initial) |