Merge pull request #394 from sangeeths/misc_updates
adding 'id' to self['xep_0332'].send_request()
This commit is contained in:
commit
da14ce16ec
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user