mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-17 17:42:20 +03:00
Inara: API stated to not support compression
This commit is contained in:
parent
5b80ffbb90
commit
0c938bddfc
@ -1574,6 +1574,7 @@ def send_data(url: str, data: Mapping[str, Any]) -> bool: # noqa: CCR001
|
|||||||
:param data: the data to POST
|
:param data: the data to POST
|
||||||
:return: success state
|
: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 = this.session.post(url, data=json.dumps(data, separators=(',', ':')), timeout=_TIMEOUT)
|
||||||
r.raise_for_status()
|
r.raise_for_status()
|
||||||
reply = r.json()
|
reply = r.json()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user