-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
high priorityThis is of high priorityThis is of high priority
Description
References nonexistent request_data.
web-hacker/src/cdp/network_monitor.py
Lines 897 to 921 in c1df657
| def _create_har_response_from_transaction(self, response_data, response_body_data): | |
| """Create HAR response object from transaction response data.""" | |
| response_headers = response_data.get("responseHeaders", {}) | |
| headers = [{"name": k, "value": v} for k, v in response_headers.items()] | |
| # Parse cookies from response headers | |
| cookies = [] | |
| set_cookies = response_data.get("setCookies", []) | |
| for cookie in set_cookies: | |
| cookies.append({ | |
| "name": cookie.get("name", ""), | |
| "value": cookie.get("value", ""), | |
| "path": cookie.get("path", ""), | |
| "domain": cookie.get("domain", ""), | |
| "expires": cookie.get("expires", ""), | |
| "httpOnly": cookie.get("httpOnly", False), | |
| "secure": cookie.get("secure", False) | |
| }) | |
| # Get response body content - read full content from file, not truncated data | |
| content_text = "" | |
| content_size = 0 | |
| # Try to read the full response body file directly | |
| transaction_dir = response_data.get("transactionDir") or request_data.get("transactionDir") |
Metadata
Metadata
Assignees
Labels
high priorityThis is of high priorityThis is of high priority