Saving cookies for debug isn't very interesting
We have them in headers in a clearer way, at least for the purpose of debugging. Showing new cookies as they appear could be done, though.
This commit is contained in:
parent
058cafe69e
commit
3a9bc80f8a
1 changed files with 0 additions and 4 deletions
|
|
@ -162,10 +162,6 @@ class BaseBrowser(object):
|
|||
|
||||
response_filepath = os.path.join(self.responses_dirname, filename)
|
||||
|
||||
with open(response_filepath, 'w') as f:
|
||||
f.write(response.content)
|
||||
if response.cookies and len(response.cookies):
|
||||
WeboobCookieJar.from_cookiejar(response.cookies).export(response_filepath + '-cookies.txt')
|
||||
with open(response_filepath + '-request.txt', 'w') as f:
|
||||
for key, value in response.request.headers.iteritems():
|
||||
f.write('%s: %s\n' % (key, value))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue