Headlights flash on and off

My '69 Charger would do the same thing. Turns out the harness male-female plug had a bad connection. It actually came loose. Could also be a short in the headlite switch.