This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 96029d22083 CAMEL-20484: camel-jbang - Using rest with /api context
should have content-type in http summary
96029d22083 is described below
commit 96029d22083188c82328269e6b86ac18ce0a0da6
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu Feb 29 17:25:59 2024 +0100
CAMEL-20484: camel-jbang - Using rest with /api context should have
content-type in http summary
---
.../apache/camel/component/platform/http/PlatformHttpComponent.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/components/camel-platform-http/src/main/java/org/apache/camel/component/platform/http/PlatformHttpComponent.java
b/components/camel-platform-http/src/main/java/org/apache/camel/component/platform/http/PlatformHttpComponent.java
index e6293abeff3..d57d96a76f1 100644
---
a/components/camel-platform-http/src/main/java/org/apache/camel/component/platform/http/PlatformHttpComponent.java
+++
b/components/camel-platform-http/src/main/java/org/apache/camel/component/platform/http/PlatformHttpComponent.java
@@ -86,7 +86,8 @@ public class PlatformHttpComponent extends DefaultComponent
implements RestConsu
throws Exception {
// reuse the createConsumer method we already have. The api need to
use GET and match on uri prefix
- return doCreateConsumer(camelContext, processor, "GET", contextPath,
null, null, null, configuration,
+ return doCreateConsumer(camelContext, processor, "GET", contextPath,
null, null, "application/json,text/yaml",
+ configuration,
parameters, true);
}