MCPcopy Index your code
hub / github.com/microsoft/playwright-python / adjust_server_headers

Function adjust_server_headers

tests/async/test_network.py:30–35  ·  view source on GitHub ↗
(headers: Dict[str, str], browser_name: str)

Source from the content-addressed store, hash-verified

28
29
30def adjust_server_headers(headers: Dict[str, str], browser_name: str) -> Dict[str, str]:
31 if browser_name != "firefox":
32 return headers
33 headers = headers.copy()
34 headers.pop("priority", None)
35 return headers
36
37
38async def test_request_fulfill(page: Page, server: Server) -> None:

Calls 1

copyMethod · 0.80

Tested by

no test coverage detected