Skip to content

Commit

Permalink
chore: roll to Playwright 1.15.2-1633455481000 (#934)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt authored Oct 5, 2021
1 parent 26e64e8 commit 636855a
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 1 addition & 4 deletions playwright/_impl/_network.py
Original file line number Diff line number Diff line change
@@ -160,10 +160,7 @@ async def header_value(self, name: str) -> Optional[str]:
async def _actual_headers(self) -> "RawHeaders":
if not self._all_headers_future:
self._all_headers_future = asyncio.Future()
response = await self.response()
if not response:
return self._provisional_headers
headers = await response._channel.send("rawRequestHeaders")
headers = await self._channel.send("rawRequestHeaders")
self._all_headers_future.set_result(RawHeaders(headers))
return await self._all_headers_future

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@
InWheel = None
from wheel.bdist_wheel import bdist_wheel as BDistWheelCommand

driver_version = "1.15.0-1633020276000"
driver_version = "1.15.2-1633455481000"


def extractall(zip: zipfile.ZipFile, path: str) -> None:
2 changes: 2 additions & 0 deletions tests/async/test_network.py
Original file line number Diff line number Diff line change
@@ -26,6 +26,8 @@

async def test_request_fulfill(page, server):
async def handle_request(route: Route, request: Request):
headers = await route.request.all_headers()
assert headers["accept"]
assert route.request == request
assert repr(route) == f"<Route request={route.request}>"
assert "empty.html" in request.url

0 comments on commit 636855a

Please sign in to comment.