Leicester City's Jamie Vardy scored for the seventh straight Premier League game as they beat Crystal Palace 1-0.