From 3a135a0a3e154598edde68b0f32fe23c641d78f4 Mon Sep 17 00:00:00 2001 From: Thomas Kluyver <thomas.kluyver@xfel.eu> Date: Thu, 17 Nov 2022 15:49:18 +0100 Subject: [PATCH] Ignore empty query strings --- calparrot/proxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calparrot/proxy.py b/calparrot/proxy.py index 3f58c07..b45b0ce 100644 --- a/calparrot/proxy.py +++ b/calparrot/proxy.py @@ -154,7 +154,7 @@ class ProxyHandler(RequestHandler): async def get(self, path): req_path = path - if self.request.query is not None: + if self.request.query: req_path += '?' + self._normalize_query(self.request.query) response = await self._get_with_cache(req_path) -- GitLab