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/
2222node_modules /
2323package-lock.json
2424package.json
25+
26+ .idea
Original file line number Diff line number Diff line change @@ -504,10 +504,12 @@ async def _download_request_with_page(
504504 if download :
505505 request .meta ["playwright_suggested_filename" ] = download .suggested_filename
506506 respcls = responsetypes .from_args (url = download .url , body = download .body )
507+ download_headers = Headers (download .headers )
508+ download_headers .pop ("Content-Encoding" , None )
507509 return respcls (
508510 url = download .url ,
509511 status = download .response_status ,
510- headers = Headers ( download . headers ) ,
512+ headers = download_headers ,
511513 body = download .body ,
512514 request = request ,
513515 flags = ["playwright" ],
You can’t perform that action at this time.
0 commit comments