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

♻ Assume request bodies contain JSON when no Content-Type header is provided #3456

Merged
merged 2 commits into from Jul 3, 2021

Commits on Jul 3, 2021

  1. ♻️ Assume JSON when no Content-Type header is provided

    as that doesn't risk CSRF problems that would always have headers, and because many clients already depend on that default behavior
    tiangolo committed Jul 3, 2021
    Configuration menu
    Copy the full SHA
    0d73aaf View commit details
    Browse the repository at this point in the history
  2. ✅ Add tests to check that by default request bodies are assumed as JS…

    …ON when no content-type header is provided
    tiangolo committed Jul 3, 2021
    Configuration menu
    Copy the full SHA
    540f19f View commit details
    Browse the repository at this point in the history