ServiceStack.Webhooks icon indicating copy to clipboard operation
ServiceStack.Webhooks copied to clipboard

Content-Type (Other than application/json) Not Supported

Open jezzsantos opened this issue 7 years ago • 0 comments

We currently don't support relaying events to subscribers with any other Content-Type than application/json. You will get a 400 is you subscribe with any other Content-Type. See SubscriptionConfigValidator

Possible other types we could/should support would be at least: application/x-www-form-urlencoded as well as application/json

That's because right now we are using a JsonServiceClient (wrapped inside the ServiceClient class) to do our relay of events. That would have to change. For example, using the HttpClient instead.

jezzsantos avatar Mar 09 '17 08:03 jezzsantos