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