adamkewley / jobson

A platform for transforming command-line applications into a job service.
Apache License 2.0
256 stars 20 forks source link

Assume `application/json` for POSTed requests and fail if cannot parse as `application/json` #9

Closed adamkewley closed 6 years ago

adamkewley commented 6 years ago

It's a PITA to have to add -H 'content-type: application/json to cURL calls for an API that, at the moment, only accepts application/json anyway.

adamkewley commented 6 years ago

This will not be implemented - technically, a POSTed request with the wrong Content-Type should be handled as an error by the server