[DEV] add nan in json

This commit is contained in:
Edouard DUPIN 2023-04-04 22:37:20 +02:00
parent 5273830ed1
commit f4d2b550a2
3 changed files with 4 additions and 3 deletions

View File

@ -170,7 +170,8 @@ class KaranageConnection(KaranageConnectionInterface):
) -> KaranageResponse:
headers = self.update_header(headers)
url = self.get_url(service, url_offset)
ret = requests.post(url, json=data, headers=headers, params=params)
headers["Content-Type"] = "application/json"
ret = requests.post(url, data=json.dumps(data), headers=headers, params=params)
try:
return KaranageResponse(url, ret.status_code, ret.content.decode("utf-8"))
except requests.exceptions.ConnectionError as ex:

View File

@ -1 +1 @@
0.7.2-dev
0.7.3-dev

View File

@ -1 +1 @@
0.7.2-dev
0.7.3-dev