fix problem with empty content-type in POST, PUT and PATCH requests