Commit 63d72fbd authored by Philipp Hörist's avatar Philipp Hörist

HTTPAuth: Parse attrs correctly

Fixes #84
parent e57118fd
......@@ -45,7 +45,10 @@ class HTTPAuth:
if confirm is None:
return
http_auth = confirm.getAttrs().copy()
http_auth['body'] = stanza.getTagData('body')
properties.http_auth = HTTPAuthData(**http_auth)
log.info('Found data: %s', http_auth)
attrs = confirm.getAttrs()
body = stanza.getTagData('body')
id_ = attrs.get('id')
method = attrs.get('method')
url = attrs.get('url')
properties.http_auth = HTTPAuthData(id_, method, url, body)
log.info('HTTPAuth received: %s %s %s %s', id_, method, url, body)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment