Skip to content

Add option to disable default Content-Type charset - #1732

Open
yassin5154 wants to merge 1 commit into
aws:mainfrom
yassin5154:feature/optional-default-content-charset
Open

yassin5154 wants to merge 1 commit into
aws:mainfrom
yassin5154:feature/optional-default-content-charset

Conversation

@yassin5154

Copy link
Copy Markdown

Description

This PR introduces a new configuration option, appendDefaultContentCharset, in ContainerConfig.

  • The option is enabled by default to preserve existing behavior.
  • When disabled, the original Content-Type header is preserved without appending the default charset.
  • Existing explicitly provided charsets remain unchanged.

Tests

Added tests to verify:

  • The default charset is not appended when the option is disabled.
  • An explicitly provided charset is preserved when appending is disabled.

Test results: 12 tests passed, with 0 failures and 0 errors. JaCoCo was skipped during this targeted test run.

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