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
Original Message:
Sent: Sun February 25, 2024 09:29 AM
From: R K
Subject: Content Type Header Updated Automatically after Results Action
Dears,
We have a MPGW service where we decrypt and verify the input payload and forward the same to backend. We are using Datapower Actions to verify and decrypt. The Content Type header is being updated to binary/octet-stream from text/plain after the Results Action. There is no processing post JSON Web Decrypt.
Please help me in fixing/idenitifying the reason why the Content-Type header is being automatically updated.
When I checked in the probe. The header value was text/plain after the Decrypt Action. It is changed to binary/octet-stream after Results Action. There is no other action between Decrypt and Results Action
------------------------------
R K
------------------------------