set content-type only if it is not set yet