API POST and PUT requests must require Content-Type: application/json. Fix #559