jezzsantos / ServiceStack.Webhooks

Add Webhooks to your ServiceStack services
Apache License 2.0
27 stars 7 forks source link

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

Open jezzsantos opened 7 years ago

jezzsantos commented 7 years ago

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.