projects
/
diaspy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b295bf
)
Fix #22 (https://github.com/marekjm/diaspy/issues/22)
author
Yax
<kianby@madyanne.fr>
Sun, 25 Jun 2017 17:40:46 +0000
(19:40 +0200)
committer
Yax
<kianby@madyanne.fr>
Sun, 25 Jun 2017 17:40:46 +0000
(19:40 +0200)
diaspy/connection.py
patch
|
blob
|
blame
|
history
diff --git
a/diaspy/connection.py
b/diaspy/connection.py
index 98025be68ee6762fdcad769518afd2cd1cd97ad9..8f592fff2b14a37ea043c9d37ebf50ec3acfaa03 100644
(file)
--- a/
diaspy/connection.py
+++ b/
diaspy/connection.py
@@
-24,7
+24,7
@@
class Connection():
_userinfo_regex = re.compile(r'window.current_user_attributes = ({.*})')
# this is for older version of D*
_token_regex_2 = re.compile(r'content="(.*?)"\s+name="csrf-token')
- _userinfo_regex_2 = re.compile(r'gon.user=({.*
});gon.preloads
')
+ _userinfo_regex_2 = re.compile(r'gon.user=({.*
?});gon.
')
_verify_SSL = True
def __init__(self, pod, username, password, schema='https'):