diff options
author | Sangeeth Saravanaraj <sangeeth@riptideio.com> | 2015-05-01 14:32:36 +0530 |
---|---|---|
committer | Sangeeth Saravanaraj <sangeeth@riptideio.com> | 2015-05-01 14:32:36 +0530 |
commit | d60a652259c74aaea4a250c542ce5ceaeb81f177 (patch) | |
tree | 9845634ad38f9a789d299c1cec1274525a25b7f7 /sleekxmpp/plugins | |
parent | 61a7cecb319c5628973906250ed973f21883cfd4 (diff) | |
download | slixmpp-d60a652259c74aaea4a250c542ce5ceaeb81f177.tar.gz slixmpp-d60a652259c74aaea4a250c542ce5ceaeb81f177.tar.bz2 slixmpp-d60a652259c74aaea4a250c542ce5ceaeb81f177.tar.xz slixmpp-d60a652259c74aaea4a250c542ce5ceaeb81f177.zip |
data need not be prefixed with http..
Diffstat (limited to 'sleekxmpp/plugins')
-rw-r--r-- | sleekxmpp/plugins/xep_0332/http.py | 4 | ||||
-rw-r--r-- | sleekxmpp/plugins/xep_0332/stanza/data.py | 2 |
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'): |