correctly save file content with -a
This commit is contained in:
parent
5fb0aad01e
commit
16615dd337
1 changed files with 2 additions and 0 deletions
|
|
@ -164,6 +164,8 @@ class BaseBrowser(object):
|
|||
(self.responses_count, response.status_code, '-' if path else '', path, ext)
|
||||
|
||||
response_filepath = os.path.join(self.responses_dirname, filename)
|
||||
with open(response_filepath, 'w') as f:
|
||||
f.write(response.content)
|
||||
|
||||
request = response.request
|
||||
with open(response_filepath + '-request.txt', 'w') as f:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue