From e339827436084b2d0cf1bf47bdd6ee6f5332062f Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Thu, 20 Aug 2020 15:41:35 +0800 Subject: [PATCH] aiohttp: fix request arguments --- nvchecker/httpclient/aiohttp_httpclient.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nvchecker/httpclient/aiohttp_httpclient.py b/nvchecker/httpclient/aiohttp_httpclient.py index 0737801..eaa2cc9 100644 --- a/nvchecker/httpclient/aiohttp_httpclient.py +++ b/nvchecker/httpclient/aiohttp_httpclient.py @@ -30,7 +30,6 @@ class AiohttpSession(BaseSession): json = None, ) -> Response: kwargs = { - 'method': method, 'headers': headers, } @@ -39,7 +38,7 @@ class AiohttpSession(BaseSession): try: res = await self.session.request( - url, **kwargs) + method, url, **kwargs) except ( asyncio.TimeoutError, aiohttp.ClientConnectorError, ) as e: