gnodet opened a new pull request, #21963: URL: https://github.com/apache/camel/pull/21963
## Summary - Fixed `HttpSendDynamicAware.createPreProcessor()` to use `getHeader(key, String.class)` instead of casting `(String) getHeader(key)` for both `HTTP_QUERY` and `HTTP_PATH` headers, preventing `ClassCastException` when header values are non-String types (e.g., Integer). - Added unit tests verifying that non-String header values (Integer) are properly converted to String via the type converter. ## Test plan - [x] Unit tests added in `HttpSendDynamicAwareTest` covering Integer-valued HTTP_QUERY, Integer-valued HTTP_PATH, and String-valued HTTP_QUERY headers - [x] All existing tests in `camel-http-base` 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]
