summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0332/http.py
diff options
context:
space:
mode:
authorMike Taylor <bear42@gmail.com>2015-08-27 13:00:34 -0400
committerMike Taylor <bear42@gmail.com>2015-08-27 13:00:34 -0400
commitda14ce16ec564a11394dc0ee6ee446a4dfa97a5d (patch)
tree7077e17adef240f0fdaaf87ce1e4205af81852a9 /sleekxmpp/plugins/xep_0332/http.py
parentabcec1e2d3348cabf6f9f6fc26d31be1e2c6c9ed (diff)
parent18e5abb9ddc1689e7e5963cf40259a2685eed9b5 (diff)
downloadslixmpp-da14ce16ec564a11394dc0ee6ee446a4dfa97a5d.tar.gz
slixmpp-da14ce16ec564a11394dc0ee6ee446a4dfa97a5d.tar.bz2
slixmpp-da14ce16ec564a11394dc0ee6ee446a4dfa97a5d.tar.xz
slixmpp-da14ce16ec564a11394dc0ee6ee446a4dfa97a5d.zip
Merge pull request #394 from sangeeths/misc_updates
adding 'id' to self['xep_0332'].send_request()
Diffstat (limited to 'sleekxmpp/plugins/xep_0332/http.py')
-rw-r--r--sleekxmpp/plugins/xep_0332/http.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sleekxmpp/plugins/xep_0332/http.py b/sleekxmpp/plugins/xep_0332/http.py
index 92e2546f..70bcafa6 100644
--- a/sleekxmpp/plugins/xep_0332/http.py
+++ b/sleekxmpp/plugins/xep_0332/http.py
@@ -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(