Fixed accept header check logic of executeHistory.