From 6ccc1939d6bd96a5091ebedac6597e84c64a1cf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20H=C3=B6ffner?= Date: Sat, 24 Aug 2024 17:22:26 +0200 Subject: [PATCH] Pass Correct Parameters to HTTP requests. This change was necessary due to rebasing the feature branch onto the json-data fixes in #203. Relates to #201. --- pyDataverse/api.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyDataverse/api.py b/pyDataverse/api.py index a846a4e..b364847 100644 --- a/pyDataverse/api.py +++ b/pyDataverse/api.py @@ -260,16 +260,15 @@ def post_request( return self._sync_request( method=httpx.post, url=url, - json=data, headers=headers, params=params, files=files, + **request_params, ) else: return self._async_request( method=self.client.post, url=url, - json=data, headers=headers, params=params, files=files,