What was the original meaning of the expression “a hair of the dog that bit you” (a cure from hangover)?

What was the original meaning of the expression “a hair of the dog that bit you” (a cure from hangover)?
Twitter Google+ Share on Facebook