I need to set the weak indicator in the HTTP header of the http-request node.
The raw header should look like:
If-Match:W/"JzE5OfC4OTI2MjglMTM1MjIWODgyMzcxOzAwOyc="
Note the leading W/ before the double quotes. This indicates a weak validation of the ETag. See:
I tried to add the header by a function node:
msg.headers = {};
msg.headers['If-Match'] = 'W/"JzE5OfC4OTI2MjglMTM1MjIWODgyMzcxOzAwOyc="';
This of course results in a wrong header formatting:
If-Match: "W/"JzE5OfC4OTI2MjglMTM1MjIWODgyMzcxOzAwOyc=""
I tried different ways of encoding the double quotes. But this does not work as W/ needs to be outside of the quoted value.
Is there a way to set the raw header of a http-request node?
Thank you for any help.