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 12:07:14 UTC
[camel-kamelets] branch main updated: chuck-norris-source should not include unwanted HTTP headers (#1679)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
The following commit(s) were added to refs/heads/main by this push:
new 732aabeb chuck-norris-source should not include unwanted HTTP headers (#1679)
732aabeb is described below
commit 732aabeb1933dcb16d1beb22f4ceb6eada669e67
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Oct 9 14:07:06 2023 +0200
chuck-norris-source should not include unwanted HTTP headers (#1679)
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"