Fix some minor issues

This commit is contained in:
Andre Basche 2023-06-29 22:08:17 +02:00
parent 4e88bc7a9f
commit 44f40c531e
6 changed files with 12 additions and 8 deletions

View file

@ -57,7 +57,7 @@ class HonConnectionHandler(ConnectionHandler):
async def _intercept(
self, method: Callback, url: str | URL, *args: Any, **kwargs: Any
) -> AsyncIterator[aiohttp.ClientResponse]:
loop: int = kwargs.get("loop", 0)
loop: int = kwargs.pop("loop", 0)
kwargs["headers"] = await self._check_headers(kwargs.get("headers", {}))
async with method(url, *args, **kwargs) as response:
if (