I was aware that the expression referred to taking a shot of booze to cure a hangover caused by that same booze. I did not know that it originated with a myth that someone bitten by a rabid dog could be cured with a potion containing some hair from that dog. The Oxford Dictionary of Word Origins warns that there is no “…scientific evidence that the cure for either a hangover or rabies actually works.