We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5500a6e commit 8ba4448Copy full SHA for 8ba4448
.gitignore
@@ -22,3 +22,5 @@ coverage-twisted/
22
node_modules/
23
package-lock.json
24
package.json
25
+
26
+.idea
scrapy_playwright/handler.py
@@ -504,10 +504,12 @@ async def _download_request_with_page(
504
if download:
505
request.meta["playwright_suggested_filename"] = download.suggested_filename
506
respcls = responsetypes.from_args(url=download.url, body=download.body)
507
+ download_headers = Headers(download.headers)
508
+ download_headers.pop("Content-Encoding", None)
509
return respcls(
510
url=download.url,
511
status=download.response_status,
- headers=Headers(download.headers),
512
+ headers=download_headers,
513
body=download.body,
514
request=request,
515
flags=["playwright"],
0 commit comments