Fix media upload path

This commit is contained in:
Tulir Asokan
2018-02-10 17:43:46 +02:00
parent 8025535938
commit 886a080a36
+1 -1
View File
@@ -211,7 +211,7 @@ class IntentAPI:
mime_type = mime_type or magic.from_buffer(data, mime=True)
return await self.client.request("POST", "", content=data,
headers={"Content-Type": mime_type},
api_path="/matrix/media/r0/upload")
api_path="/_matrix/media/r0/upload")
async def download_file(self, url):
await self.ensure_registered()