fix content type management on write request.