Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update client.py by changing data=data to json=data since Content-Typ… #187

Closed
wants to merge 1 commit into from

Conversation

haibinhang
Copy link

…e is 'application/json'

@@ -237,7 +237,7 @@ def _request(
method,
self.endpoint + path,
params=params,
data=request_data,
json=request_data,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I understand the code correctly, in this case, "data" and "json" are not interchangeable because they have different behaviors when passing a string as a value.

Have you tested your patch? I'm concerned that this change in the base client could potentially break the library.

@denisneuf denisneuf closed this Jan 30, 2024
@denisneuf
Copy link
Owner

closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants