From 1800a9b2c176cc5f8f3b34d36233206e49d088d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Le=20Calvar?= Date: Sun, 20 May 2018 12:53:19 +0200 Subject: Fix typo in account_update_credentials Mime type of avatar was used to guess extension of header. --- mastodon/Mastodon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mastodon') 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: avatar_file_name = "mastodonpyupload_" + mimetypes.guess_extension(avatar_mime_type) files["avatar"] = (avatar_file_name, avatar, avatar_mime_type) if not header is None: - header_file_name = "mastodonpyupload_" + mimetypes.guess_extension(avatar_mime_type) + header_file_name = "mastodonpyupload_" + mimetypes.guess_extension(header_mime_type) files["header"] = (header_file_name, header, header_mime_type) params = self.__generate_params(params_initial) -- cgit v1.2.3