fix typo.

This commit is contained in:
clinton-hall 2018-05-23 20:13:13 +12:00
commit 189dde26c8

View file

@ -270,7 +270,7 @@ class autoProcessTV(object):
s = requests.Session()
login = "{0}{1}:{2}{3}/login".format(protocol, host, port, web_root)
login_params = {'username': username, 'password': password}
r = s.get(login, verify=False, timeour=(30,60))
r = s.get(login, verify=False, timeout=(30,60))
if r.status_code == 401 and r.cookies.get('_xsrf'):
login_params['_xsrf'] = r.cookies.get('_xsrf')
s.post(login, data=login_params, stream=True, verify=False, timeout=(30, 60))