We propose a general correction method for the efficiency measurement of optical components in the 45–110 nm range to eliminate the contamination of higher-order harmonics at beamline U27 of the Hefei Light Source (HLS). The influence of harmonics can be deducted effectively from the initial measurement results through the analysis of the proportion of harmonics with a transmission grating and the efficiency measurement of optical elements at the harmonics wavelengths. The reflectivity measureme