From efd13af2cbc0f81fbc25b1e2c27175f838112eb6 Mon Sep 17 00:00:00 2001 From: Andrea Cosentino Date: Mon, 9 Oct 2023 13:22:50 +0200 Subject: [PATCH] chuck-norris-source should not include unwanted HTTP headers Signed-off-by: Andrea Cosentino --- kamelets/chuck-norris-source.kamelet.yaml | 2 ++ .../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 220cbe64b..4ac9f8806 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 220cbe64b..4ac9f8806 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"