Knee-jerk reaction
An automatic, unthinking response to a situation dates from the late 19th century with allusion to the patellar or knee-jerk reflex, caused by striking the tendon below the knee.