Skip to content

Commit 7a75ead

Browse files
committed
Fix
1 parent 5335cd4 commit 7a75ead

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ipy_connection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def get_notebooks(baseurl, psswd=None):
3838
urlopen(target_url, data=urlencode({'password': psswd}).encode('utf8'))
3939
target_url = baseurl +"/notebooks"
4040
req = urlopen(target_url)
41+
encoding = req.headers.get_content_charset()
4142
body = req.readall().decode(encoding)
4243
if '<input type="password" name="password" id="password_input">' in body:
4344
return 'psswd'

0 commit comments

Comments
 (0)