You said earlier:
> When I checked in the probe. The header value was text/plain after the Decrypt Action. I
>
So no, decrypt action does not do that.
Please export your config and attach to a new support ticket to see what is going on.
In the meantime you can use XSLT or GatewayScript to set content-type to "var://service/original-content-type".
Here as well it is important that output context of that xform action is OUTPUT, with no RESULT action.
------------------------------
Hermann Stamm-Wilbrandt
Compiler Level 3 support, IBM DataPower Gateways
IBM
Boeblingen Germany
------------------------------
Original Message:
Sent: Tue February 27, 2024 04:24 AM
From: R K
Subject: Content Type Header Updated Automatically after Results Action
Thanks Hermann, I have tried your suggestion. The content type is updated to binary/octet-stream Upon removing the Results Action and updating the Output context of JSON Web Decrypt Action to OUTPUT.
Is it a feature of JSON Web Decrypt Action to change to content Type in that way?
------------------------------
R K
------------------------------
Original Message:
Sent: Tue February 27, 2024 03:23 AM
From: Hermann Stamm-Wilbrandt
Subject: Content Type Header Updated Automatically after Results Action
Hi,
you are doing a transformation with the RESULT action, and that does more than changing content-type.
Easiest way to keep the request content-type is to make last action in your rule use output context OUTPUT
and remove the RESULT action.
In case other actions would modify content-type, then you can always set content-type
to value "var://service/original-content-type":
https://www.ibm.com/docs/en/datapower-gateway/10.0.1?topic=variables-varserviceoriginal-content-type-servicevarsoriginalcontenttype
------------------------------
Hermann Stamm-Wilbrandt
Compiler Level 3 support, IBM DataPower Gateways
IBM
Boeblingen Germany