Without knowing what vehicle, The headlight power does go straight through the switch. The switch also sends power out another wire to the park lamp fuse. This is the only fuse that is not hot before the headlight switch is pulled to first dent/position. All other fuses are hot at all times or hot in run.
Sounds as though you have diagnosed and proven the headlight switch is the fault.