|
@@ -143,11 +143,11 @@ class labkeyInterface:
|
|
|
response=self.get(url)
|
|
|
encoding=chardet.detect(response.data)['encoding']
|
|
|
jsonData=json.loads(response.data.decode(encoding))
|
|
|
+ self.cookie=response.getheader('Set-Cookie')
|
|
|
except AttributeError:
|
|
|
print('Failed')
|
|
|
return None
|
|
|
|
|
|
- self.cookie=response.getheader('Set-Cookie')
|
|
|
print('CSRF: {}'.format(jsonData['CSRF']))
|
|
|
return jsonData["CSRF"]
|
|
|
|