From 3b5a1b460f73307c0a787cd62125e3a26673fdac Mon Sep 17 00:00:00 2001 From: Dusty Pianalto Date: Mon, 21 Oct 2019 01:04:11 -0800 Subject: [PATCH] Fix a bug in the url. Might cause problems later --- lib/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/api.py b/lib/api.py index 37351a6..8344b1f 100644 --- a/lib/api.py +++ b/lib/api.py @@ -48,7 +48,7 @@ class API: path = f'{MATRIX_MEDIA if request_type == "MEDIA" else MATRIX_API}/{endpoint}' path = self.base_url + quote(path) if query: - path += f"?{urlencode(query)}" + path += f"?{urlencode(query).lower()}" return path def get_wait_time(self, num_timeouts: int) -> float: @@ -197,6 +197,7 @@ class API: query["since"] = since path = self.build_url("sync", query=query) + print(path) resp = await self.send("GET", path) return resp