I'm using an http_in node to receive webhooks that are signed.
My problem is the same as expose here except that my webhooks are not coming from Stripe so I can't use any existing Strip contrib-node
To verify the signature I must apply a signature algorithm to the raw body received from the POST request as a buffer or a string.
But it appears that the http_in node automatically parse the JSON to provide the payload as an object.
It does the same on the msg.req.body field:
For now I am using a JSON.stringify(), it seems to work for now but there is no guarantee that the parse/stringify operation returns an string exactly matching the original raw body (could be spaces added/removes, ...)
Did I missed something or is it correct that the http_in doesn't provide the raw body "unmodified" ?
If I'm correct it would be a great to provide access to the raw body
Same comment about headers. The doc say that headers are provided in a "headers" sub-object but actually they are only provided in a string array rawHeaders with even index being the header name and odd index being the header value.