From 05caf38d37e15e5de5290aa010a7114eb7191692 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 16 Jan 2022 15:22:37 +0000 Subject: [PATCH] Use PUT method instead of POST, as expected by API --- snikket_web/prosodyclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snikket_web/prosodyclient.py b/snikket_web/prosodyclient.py index 23bd841..f065c25 100644 --- a/snikket_web/prosodyclient.py +++ b/snikket_web/prosodyclient.py @@ -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: