Open brunt82 opened 7 years ago
When I POST an event with the wrong content-type ("text/xml" instead of "text/calendar"), I
this is absolutly correct behavior form my pov. your content type ix text/xml but you are not transmitting xml in the body.
works as designed -> close
I'm sorry, but this seems not to be correct. When the content type does not reflects the request body, it is clearly an error by the client. Therefore the server must send a HTTP error code 4xx (in this case I would prefer 400). HTTP 500 leads to an server error, which is not the case here:
When I POST an event with the wrong content-type ("text/xml" instead of "text/calendar"), I receive HTTP error 500 and a "LibXMLException"-exception:
Response: