adding 'id' to self['xep_0332'].send_request()

This commit is contained in:
Sangeeth Saravanaraj 2015-08-27 13:24:01 +05:30
parent abcec1e2d3
commit 18e5abb9dd

View File

@ -108,6 +108,8 @@ class XEP_0332(BasePlugin):
iq['http-req']['method'] = method iq['http-req']['method'] = method
iq['http-req']['resource'] = resource iq['http-req']['resource'] = resource
iq['http-req']['version'] = '1.1' # TODO: set this implicitly iq['http-req']['version'] = '1.1' # TODO: set this implicitly
if 'id' in kwargs:
iq['id'] = kwargs["id"]
if data is not None: if data is not None:
iq['http-req']['data'] = data iq['http-req']['data'] = data
return iq.send( return iq.send(