We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3376a13 commit a632118Copy full SHA for a632118
scrapy_playwright/headers.py
@@ -30,7 +30,10 @@ async def use_scrapy_headers(
30
31
# override user agent, for consistency with other requests
32
if headers.get("user-agent"):
33
- playwright_request.headers["user-agent"] = headers["user-agent"]
+ return {
34
+ **playwright_request.headers,
35
+ "user-agent": headers["user-agent"],
36
+ }
37
return playwright_request.headers
38
39
0 commit comments