{"name":"CLAUDE_CODE_DISABLE_BEDROCK_CONTENT_TYPE_DEFAULT","slug":"claude-code-disable-bedrock-content-type-default","family":"env","title":"Environment variables","noun":"environment variable","description":"Set to `1` to stop Claude Code from treating an [Amazon Bedrock](\/docs\/en\/amazon-bedrock) streaming response with a missing or empty `Content-Type` header as Amazon Bedrock's binary event stream. By default, Claude Code assumes a gateway dropped the header from an otherwise unmodified response, so it decodes the body and streaming keeps working. Set this only for a gateway that also re-emits the stream as server-sent events; Claude Code then reads the header-less body as server-sent events instead. Requires Claude Code v2.1.239 or later","description_source":"docs","described_by":{"doc":"claude-code\/env-vars","title":"Environment variables"},"presence":{"first_seen":"2.1.239","removed_in":null,"in_current_build":true,"newest_mined":"2.1.309","builds":60,"mined_builds":150,"first_cited":{"version":"2.1.239","released_at":"2026-08-21 17:18:54","spans":1}},"aliases":[],"entries":[{"version":"2.1.239","anchor":"bedrock-streaming-responses-without-a-content-type-no-longer","heading":"Bedrock streaming responses without a content-type no longer fail","line":"Bedrock streaming replies missing a content-type now work, and a new env var restores the old strict check.","released_at":"2026-08-21 17:18:54","reason":"named in this entry, found in this entry's text"}],"entries_total":1,"docs":[{"source":"claude-code","path":"env-vars","title":"Environment variables","documented":true},{"source":"claude-code","path":"amazon-bedrock","title":"Claude Code on Amazon Bedrock","documented":false}],"docs_total":2,"gates":[],"related":[{"name":"CLAUDE_CODE_DISABLE_BEDROCK_CONTENT_TYPE_GUARD","slug":"claude-code-disable-bedrock-content-type-guard","description":"Set to `1` to skip the check that an [Amazon Bedrock](\/docs\/en\/amazon-bedrock) streaming response carries the `application\/vnd.amazon.eventstream` content-type. Without this variable, when a response carries a different content-type, Claude Code fails the request with an error naming that type, which means a [gateway or proxy is transforming the response](\/docs\/en\/amazon-bedrock#streaming-errors-behind-a-gateway-or-proxy). Configure the gateway to forward the `Content-Type` header and body unmodified rather than setting this variable. Requires Claude Code v2.1.208 or later"}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/claude-code-disable-bedrock-content-type-default","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}