1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-15 08:40:34 +03:00

Inara: API stated to not support compression

This commit is contained in:
Athanasius 2022-01-25 17:43:04 +00:00
parent 5b80ffbb90
commit 0c938bddfc
No known key found for this signature in database
GPG Key ID: AE3E527847057C7D

View File

@ -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()