You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2023/10/09 11:25:44 UTC
[camel-kamelets] branch chuck-norris-http-headers created (now efd13af2)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a change to branch chuck-norris-http-headers
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
at efd13af2 chuck-norris-source should not include unwanted HTTP headers
This branch includes the following new commits:
new efd13af2 chuck-norris-source should not include unwanted HTTP headers
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[camel-kamelets] 01/01: chuck-norris-source should not include unwanted HTTP headers
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch chuck-norris-http-headers
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit efd13af2cbc0f81fbc25b1e2c27175f838112eb6
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Oct 9 13:22:50 2023 +0200
chuck-norris-source should not include unwanted HTTP headers
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
kamelets/chuck-norris-source.kamelet.yaml | 2 ++
.../src/main/resources/kamelets/chuck-norris-source.kamelet.yaml | 2 ++
2 files changed, 4 insertions(+)
diff --git a/kamelets/chuck-norris-source.kamelet.yaml b/kamelets/chuck-norris-source.kamelet.yaml
index 220cbe64..4ac9f880 100644
--- a/kamelets/chuck-norris-source.kamelet.yaml
+++ b/kamelets/chuck-norris-source.kamelet.yaml
@@ -54,6 +54,8 @@ spec:
period: "{{period}}"
steps:
- to: "https://api.chucknorris.io/jokes/random"
+ - removeHeaders:
+ pattern: '*'
- set-body:
jsonpath: "$.value"
- to: "kamelet:sink"
diff --git a/library/camel-kamelets/src/main/resources/kamelets/chuck-norris-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/chuck-norris-source.kamelet.yaml
index 220cbe64..4ac9f880 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/chuck-norris-source.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/chuck-norris-source.kamelet.yaml
@@ -54,6 +54,8 @@ spec:
period: "{{period}}"
steps:
- to: "https://api.chucknorris.io/jokes/random"
+ - removeHeaders:
+ pattern: '*'
- set-body:
jsonpath: "$.value"
- to: "kamelet:sink"