davsclaus commented on code in PR #15145:
URL: https://github.com/apache/camel/pull/15145#discussion_r1760929917
##########
components/camel-platform-http/src/main/java/org/apache/camel/component/platform/http/PlatformHttpEndpoint.java:
##########
@@ -132,9 +169,30 @@ protected PlatformHttpConsumer
createPlatformHttpConsumer(Processor processor) t
@Override
public HeaderFilterStrategy getHeaderFilterStrategy() {
+ if (!returnHttpRequestHeaders) {
+ return
enhanceHeaderFilterStrategyToSkipHttpRequestHeaders(headerFilterStrategy);
+ }
return headerFilterStrategy;
}
+ private HeaderFilterStrategy
enhanceHeaderFilterStrategyToSkipHttpRequestHeaders(
+ HeaderFilterStrategy headerFilterStrategy) {
+ return new HeaderFilterStrategy() {
+ @Override
+ public boolean applyFilterToCamelHeaders(String headerName, Object
headerValue, Exchange exchange) {
+ if (COMMON_HTTP_REQUEST_HEADERS.contains(headerName)) {
Review Comment:
Send another PR for review on top of main branch
--
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]