Fixing the way Response object handles sub items in some edge cases
+ Do it with the least impact on performance
This commit is contained in:
@@ -224,14 +224,14 @@ class PlaywrightEngine:
|
||||
response = Response(
|
||||
url=res.url,
|
||||
text=page.content(),
|
||||
content=res.body(),
|
||||
body=res.body(),
|
||||
status=res.status,
|
||||
reason=res.status_text,
|
||||
encoding=encoding,
|
||||
cookies={cookie['name']: cookie['value'] for cookie in page.context.cookies()},
|
||||
headers=res.all_headers(),
|
||||
request_headers=res.request.all_headers(),
|
||||
adaptor_arguments=self.adaptor_arguments
|
||||
**self.adaptor_arguments
|
||||
)
|
||||
page.close()
|
||||
return response
|
||||
|
||||
Reference in New Issue
Block a user