Use PUT method instead of POST, as expected by API

This commit is contained in:
Matthew Wild
2022-01-16 15:22:37 +00:00
committed by Jonas Schäfer
parent 390ecded42
commit 05caf38d37

View File

@@ -1145,7 +1145,7 @@ class ProsodyClient:
*,
session: aiohttp.ClientSession,
) -> bool:
async with session.post(
async with session.put(
self._xep227_endpoint("/import?stores=roster,vcard,pep,pep_data"), # noqa:E501
data=user_xml,
) as resp: