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.
This commit is contained in:
Kim Alvefur
2021-03-23 21:35:08 +01:00
parent 3571b8909b
commit 329916e200

View File

@@ -509,7 +509,7 @@ class ProsodyClient:
req = {
"kind": "iq",
"type": "get",
"version": True,
"version": {},
"to": domain,
}