diff --git a/tixte/http.py b/tixte/http.py index cc4438c..b6df921 100644 --- a/tixte/http.py +++ b/tixte/http.py @@ -49,11 +49,9 @@ def __init__(self, session: Optional[aiohttp.ClientSession] = None) -> None: async def request(self, route: Route, **kwargs: Any) -> Dict: - async with self.session.request(route.method, route.url, {**route.parameters, **kwargs}) as resp: + kwargs = {**route.parameters, **kwargs} + async with self.session.request(route.method, route.url, **kwargs) as resp: if resp.status != 200: raise NotImplementedError("API status was not 200, this hasn't been implemented yet.") - - # We're going to assume the API returns Dict for now. - # We'll change this later as I get more info. - return await resp.json() - \ No newline at end of file + + return await resp.json() \ No newline at end of file