Skip to content

fix: 修复json请求时无法指定自定义的Content-Type #11889

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

Merged
merged 1 commit into from
Apr 21, 2025

Conversation

lanyuanxiaoyao
Copy link
Contributor

同为json请求,还有扩展的Content-Type,如application/vnd.api+json,当遇到严格的校验的服务接口,使用application/json无法通过校验,所以不应遇到json请求就统一指定Content-Typeapplication/json

@github-actions github-actions bot added the fix label Apr 18, 2025
Copy link

👍 Thanks for this!
🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.

@lanyuanxiaoyao
Copy link
Contributor Author

#11784

@2betop 2betop merged commit dd23060 into baidu:master Apr 21, 2025
4 checks passed
@lanyuanxiaoyao lanyuanxiaoyao deleted the fix-content-type branch April 21, 2025 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants