Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix Python code sample JSON body#2976

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
rodrcastro wants to merge3 commits intomain
base:main
Choose a base branch
Loading
fromrodrigo/rnd-6538-json-body-in-python-code-sample-is-not-being-set

Conversation

rodrcastro
Copy link
Contributor

@rodrcastrorodrcastro commentedMar 12, 2025
edited
Loading

When sending a JSON body in the request, it should usejson. This PR changes it to make the code sample request correct.

@linearLinear
Copy link

linearbot commentedMar 12, 2025

@changeset-botchangeset-bot
Copy link

changeset-botbot commentedMar 12, 2025
edited
Loading

⚠️ No Changeset found

Latest commit:631cecc

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go.If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actionsGitHub Actions
Copy link
Contributor

github-actionsbot commentedMar 12, 2025
edited
Loading

@argos-ciArgos CI
Copy link

argos-cibot commentedMar 12, 2025
edited
Loading

The latest updates on your projects. Learn more aboutArgos notifications ↗︎

BuildStatusDetailsUpdated (UTC)
customers-v1 (Inspect)⚠️ Changes detected (Review)13 changedMar 19, 2025, 8:56 PM
customers-v2 (Inspect)⚠️ Changes detected (Review)12 changedMar 19, 2025, 8:56 PM
default (Inspect)⚠️ Changes detected (Review)31 changedMar 19, 2025, 8:57 PM
v2-vercel (Inspect)⚠️ Changes detected (Review)22 changedMar 19, 2025, 9:00 PM

@nolannbiron
Copy link
Member

@rodrcastro We are usingdata instead ofjson to handle any content type.

If you want to sendtext/csv,text/plain ormultipart, you can’t usejson, it’s just a shorthand that implicitly sets the content type toapplication/json.

data works with any content type, as long as you specify it in the headers.

@nolannbiron
Copy link
Member

but we can set it tojson forapplication/json, if customers really want to see this instead ofdata

@nolannbiron
Copy link
Member

@SamyPesse@rodrcastro I've updated the code to handlejson={} forapplication/json anddata={} for others content type, I made this because we had a past issue to handle multiple content type

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@SamyPesseSamyPesseSamyPesse approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@rodrcastro@nolannbiron@SamyPesse

[8]ページ先頭

©2009-2025 Movatter.jp