From 0c938bddfca4ea3eabbed815da47063c90046beb Mon Sep 17 00:00:00 2001 From: Athanasius <github@miggy.org> Date: Tue, 25 Jan 2022 17:43:04 +0000 Subject: [PATCH] Inara: API stated to not support compression --- plugins/inara.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/inara.py b/plugins/inara.py index 86e3ec25..2be87cea 100644 --- a/plugins/inara.py +++ b/plugins/inara.py @@ -1574,6 +1574,7 @@ def send_data(url: str, data: Mapping[str, Any]) -> bool: # noqa: CCR001 :param data: the data to POST :return: success state """ + # NB: As of 2022-01-25 Artie has stated the Inara API does *not* support compression r = this.session.post(url, data=json.dumps(data, separators=(',', ':')), timeout=_TIMEOUT) r.raise_for_status() reply = r.json()