janus-ssp / janus

Fully featured metadata registration administration module built on top of simpleSAMLphp.
Other
13 stars 8 forks source link

API fails with "type" error when Content-Type header is omitted #528

Closed lvonk closed 9 years ago

lvonk commented 9 years ago

When Content-Type is not provided, but valid JSON is provided, the error message states that "type" is mandatory. API friendlier would be to check header parameters and fail with a proper error message.