summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2022-03-18 18:30:58 +0100
committerMaxime “pep” Buquet <pep@bouah.net>2022-03-19 10:31:34 +0100
commitacad41f3b73d13e8e9abe5578aceacaded117cd0 (patch)
tree0283dad3086ef0a5f86cbea1e915cd6ff5b103dd
parentbde5aaaf3e197f1fb71bbdabbeb597d8e8f9b4a7 (diff)
downloadslixmpp-acad41f3b73d13e8e9abe5578aceacaded117cd0.tar.gz
slixmpp-acad41f3b73d13e8e9abe5578aceacaded117cd0.tar.bz2
slixmpp-acad41f3b73d13e8e9abe5578aceacaded117cd0.tar.xz
slixmpp-acad41f3b73d13e8e9abe5578aceacaded117cd0.zip
xep_0454: Don't force content-type to application/octect-stream
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-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)