Change8

0.132.0

Breaking Changes
📦 fastapiView on GitHub →
1 breaking

Summary

This release introduces strict checking for JSON Content-Type headers by default, enhancing request validation. Internal dependencies were also updated.

⚠️ Breaking Changes

  • FastAPI now checks by default that JSON requests have a Content-Type header with a valid JSON value (like application/json) and rejects requests that do not. If clients do not send a valid Content-Type header, disable this behavior by setting `strict_content_type=False`.

Migration Steps

  1. If your clients do not send a valid Content-Type header for JSON requests, you must set `strict_content_type=False` when initializing FastAPI or configuring the endpoint to maintain previous behavior.