summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slixmpp/plugins/xep_0454/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/slixmpp/plugins/xep_0454/__init__.py b/slixmpp/plugins/xep_0454/__init__.py
index 34db0c79..63a34710 100644
--- a/slixmpp/plugins/xep_0454/__init__.py
+++ b/slixmpp/plugins/xep_0454/__init__.py
@@ -123,7 +123,7 @@ class XEP_0454(BasePlugin):
self,
filename: Path,
_size: Optional[int] = None,
- _content_type: Optional[str] = None,
+ content_type: Optional[str] = None,
**kwargs,
) -> str:
"""
@@ -154,7 +154,7 @@ class XEP_0454(BasePlugin):
input_enc.seek(0)
kwargs['size'] = size
- kwargs['content_type'] = 'application/octet-stream'
+ kwargs['content_type'] = content_type
url = await self.xmpp['xep_0363'].upload_file(**kwargs)
return self.format_url(url, fragment)