fix: try send avatar all in one go

This commit is contained in:
əlemi 2024-01-30 16:41:20 +01:00
parent 296c4b423c
commit b5a6d29ba0
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -124,7 +124,7 @@ class AppService:
"Authorization": f"Bearer {self.as_token}", "Authorization": f"Bearer {self.as_token}",
"Content-Type": res.content_type, "Content-Type": res.content_type,
}, },
chunked=await res.content.read(), data=await res.content.read(),
params={"filename":str(uuid.uuid4())}, params={"filename":str(uuid.uuid4())},
) as res: ) as res:
res.raise_for_status() res.raise_for_status()