Omer tariq
Omer tariq

Reputation: 21

How to process a request with empty content-type and content-length header

A software that i'm using(https://camlytics.com/) sends a request to a webhook whenever a particular event occurs, now i want to process that request but the problem is that the request is sent with the following headers as empty

Due to this reason my node code completely ignores the request. I have verified that the request is actually being sent via creating a webhook @ webhook.site.

I fail to understand if webhook.site can show and process that request, why cant node do it? the code easily processes all other get requests.

Would appreciate if someone could either

This is the request details that webhook.site shows me

Upvotes: 2

Views: 838

Answers (1)

Mike Little
Mike Little

Reputation: 11

Camlytics webhooks seem to work OK if you add Content-Type application/json to the Headers properties box for the HTTP Response node.

Upvotes: 1

Related Questions