From 329916e200cbc3fe930e3611e8fbbfdb2937b9ed Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 23 Mar 2021 21:35:08 +0100 Subject: [PATCH] Update for switch to datamapper in mod_rest mod_rest after the switch to the new util.datamapper in https://hg.prosody.im/prosody-modules/rev/073f5397c1d2 does not accept boolean True as value for the xep-0092 'version' field. An empty object is equivalent and compatible with both previous and future versions. --- 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 df9f201..d7cc201 100644 --- a/snikket_web/prosodyclient.py +++ b/snikket_web/prosodyclient.py @@ -509,7 +509,7 @@ class ProsodyClient: req = { "kind": "iq", "type": "get", - "version": True, + "version": {}, "to": domain, }