Skip to content

Commit ba87c60

Browse files
authored
Response security details (#68)
1 parent a46e357 commit ba87c60

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scrapy_playwright/handler.py

+3
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,9 @@ async def _download_request_with_page(self, request: Request, page: Page) -> Res
266266
server_addr = await response.server_addr()
267267
server_ip_address = ip_address(server_addr["ipAddress"])
268268

269+
with suppress(AttributeError):
270+
request.meta["playwright_security_details"] = await response.security_details()
271+
269272
headers = Headers(response.headers)
270273
headers.pop("Content-Encoding", None)
271274
encoding = _get_response_encoding(headers, body_str) or "utf-8"

0 commit comments

Comments
 (0)