Remove from header in REST request

2
Hi, The REST module automatically adds "Accept: application/json" to a GET request, but I do not need that; even worse it cripples my request because I have to use another value for Accept. I commented some lines in the Java code to get going, but is it possible to remove such headers from via a Java action from the microflow or when I add my own via the addHeaderToNextRequest Java action can it replace any existing one? Regards, Paul
asked
1 answers
0

adding your own header should overwrite any existing headers, so adding "Accept","*" or something similar should do the trick

answered