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

feat: Send form allows overriding of CONTENT_TYPE #2527

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

0x676e67
Copy link

@0x676e67 0x676e67 commented Jan 12, 2025

This allows overriding the default Content-Type set by the form method, similar to how the json method handles it. On some servers, we may need to use application/x-www-form-urlencoded;charset=utf-8 to replace the default application/x-www-form-urlencoded.

  • json

if !req.headers().contains_key(CONTENT_TYPE) {

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.

1 participant