Skip to content

Commit 6ccc193

Browse files
committed
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.
1 parent c3b7a67 commit 6ccc193

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pyDataverse/api.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,16 +260,15 @@ def post_request(
260260
return self._sync_request(
261261
method=httpx.post,
262262
url=url,
263-
json=data,
264263
headers=headers,
265264
params=params,
266265
files=files,
266+
**request_params,
267267
)
268268
else:
269269
return self._async_request(
270270
method=self.client.post,
271271
url=url,
272-
json=data,
273272
headers=headers,
274273
params=params,
275274
files=files,

0 commit comments

Comments
 (0)