Croway opened a new pull request, #22471: URL: https://github.com/apache/camel/pull/22471
## Summary - Undertow's `getRequestCharset()` defaults to ISO-8859-1 when no charset is specified in the `Content-Type` header, causing UTF-8 encoded request bodies (e.g. `application/json`) to be decoded incorrectly - Only set the exchange charset property when explicitly specified in the header, letting Camel's type conversion default to UTF-8 — matching the behavior of `DefaultHttpBinding` - Added test that sends JSON with non-ASCII UTF-8 characters and `Content-Type: application/json` (no charset) ## Test plan - [x] New test `RestUndertowHttpPostJsonPojoCharsetTest` fails before fix, passes after - [x] All 161 existing Undertow tests pass -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
