Merge pull request #394 from sangeeths/misc_updates
adding 'id' to self['xep_0332'].send_request()
This commit is contained in:
commit
da14ce16ec
1 changed files with 2 additions and 0 deletions
|
@ -108,6 +108,8 @@ class XEP_0332(BasePlugin):
|
|||
iq['http-req']['method'] = method
|
||||
iq['http-req']['resource'] = resource
|
||||
iq['http-req']['version'] = '1.1' # TODO: set this implicitly
|
||||
if 'id' in kwargs:
|
||||
iq['id'] = kwargs["id"]
|
||||
if data is not None:
|
||||
iq['http-req']['data'] = data
|
||||
return iq.send(
|
||||
|
|
Loading…
Reference in a new issue