Merge pull request #394 from sangeeths/misc_updates

adding 'id' to self['xep_0332'].send_request()
This commit is contained in:
Mike Taylor 2015-08-27 13:00:34 -04:00
commit da14ce16ec

View file

@ -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(