diff options
-rw-r--r-- | nbxmpp/modules/http_auth.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/nbxmpp/modules/http_auth.py b/nbxmpp/modules/http_auth.py index df8ac1f..fb78c46 100644 --- a/nbxmpp/modules/http_auth.py +++ b/nbxmpp/modules/http_auth.py @@ -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) |