File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -22,3 +22,5 @@ coverage-twisted/
22
22
node_modules /
23
23
package-lock.json
24
24
package.json
25
+
26
+ .idea
Original file line number Diff line number Diff line change @@ -504,10 +504,12 @@ async def _download_request_with_page(
504
504
if download :
505
505
request .meta ["playwright_suggested_filename" ] = download .suggested_filename
506
506
respcls = responsetypes .from_args (url = download .url , body = download .body )
507
+ download_headers = Headers (download .headers )
508
+ download_headers .pop ("Content-Encoding" , None )
507
509
return respcls (
508
510
url = download .url ,
509
511
status = download .response_status ,
510
- headers = Headers ( download . headers ) ,
512
+ headers = download_headers ,
511
513
body = download .body ,
512
514
request = request ,
513
515
flags = ["playwright" ],
You can’t perform that action at this time.
0 commit comments