Only set content-type to json when sending a body.