Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin-b committed Sep 22, 2024
1 parent 29eb9c3 commit 6eddd05
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pytest_httpx/_httpx_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,7 @@ async def _handle_async_request(
request: httpx.Request,
) -> httpx.Response:
# Store the content in request for future matching
if isinstance(request.stream, AsyncIterable):
await request.aread()
else:
request.read()
await request.aread()
self._requests.append((real_transport, request))

callback = self._get_callback(real_transport, request)
Expand Down

0 comments on commit 6eddd05

Please sign in to comment.