[Bug 997935] api returns HTTP 500 if a PUT request does not contain a Content-type: header