Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
python-nbxmpp
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yann Leboulanger
python-nbxmpp
Commits
63d72fbd
Commit
63d72fbd
authored
Sep 05, 2019
by
Philipp Hörist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HTTPAuth: Parse attrs correctly
Fixes
#84
parent
e57118fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
nbxmpp/modules/http_auth.py
nbxmpp/modules/http_auth.py
+7
-4
No files found.
nbxmpp/modules/http_auth.py
View file @
63d72fbd
...
...
@@ -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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment