summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0332
diff options
context:
space:
mode:
Diffstat (limited to 'sleekxmpp/plugins/xep_0332')
-rw-r--r--sleekxmpp/plugins/xep_0332/http.py4
-rw-r--r--sleekxmpp/plugins/xep_0332/stanza/data.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/sleekxmpp/plugins/xep_0332/http.py b/sleekxmpp/plugins/xep_0332/http.py
index acaef505..5c1cfc0d 100644
--- a/sleekxmpp/plugins/xep_0332/http.py
+++ b/sleekxmpp/plugins/xep_0332/http.py
@@ -109,7 +109,7 @@ class XEP_0332(BasePlugin):
iq['http-req']['resource'] = resource
iq['http-req']['version'] = '1.1' # TODO: set this implicitly
if data is not None:
- iq['http-req']['http-data'] = data
+ iq['http-req']['data'] = data
return iq.send(
timeout=kwargs.get('timeout', None),
block=kwargs.get('block', True),
@@ -128,7 +128,7 @@ class XEP_0332(BasePlugin):
iq['http-resp']['message'] = message
iq['http-resp']['version'] = '1.1' # TODO: set this implicitly
if data is not None:
- iq['http-resp']['http-data'] = data
+ iq['http-resp']['data'] = data
return iq.send(
timeout=kwargs.get('timeout', None),
block=kwargs.get('block', True),
diff --git a/sleekxmpp/plugins/xep_0332/stanza/data.py b/sleekxmpp/plugins/xep_0332/stanza/data.py
index 765536eb..a3678038 100644
--- a/sleekxmpp/plugins/xep_0332/stanza/data.py
+++ b/sleekxmpp/plugins/xep_0332/stanza/data.py
@@ -18,7 +18,7 @@ class HTTPData(ElementBase):
name = 'data'
namespace = 'urn:xmpp:http'
interfaces = set(['data'])
- plugin_attrib = 'http-data'
+ plugin_attrib = 'data'
is_extension = True
def get_data(self, encoding='text'):