We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5335cd4 commit 7a75eadCopy full SHA for 7a75ead
1 file changed
ipy_connection.py
@@ -38,6 +38,7 @@ def get_notebooks(baseurl, psswd=None):
38
urlopen(target_url, data=urlencode({'password': psswd}).encode('utf8'))
39
target_url = baseurl +"/notebooks"
40
req = urlopen(target_url)
41
+ encoding = req.headers.get_content_charset()
42
body = req.readall().decode(encoding)
43
if '<input type="password" name="password" id="password_input">' in body:
44
return 'psswd'
0 commit comments