Replaced illegal removeHeaders call.