mcp: add MCPGPDEBUG for opt-in Content-Type check (#972)

Fixes #957
This commit is contained in:
Guglielmo Colombo 2026-05-22 13:30:38 +02:00 • committed by GitHub
commit d454bbaf06
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,6 +18,15 @@
## `MCPGODEBUG` history
### 1.6.1
Options listed below were added and will be removed in the 1.8.0 version of the SDK.
- `disablecontenttypecheck` added. If set to `1`, Content-Type validation on
HTTP POST requests will be disabled, allowing requests with non-JSON or missing
Content-Type headers. The default behavior is to validate that HTTP POST
requests have Content-Type: application/json.
### 1.6.0
Options listed below were added and will be removed in the 1.8.0 version of the SDK.