The idiom
hair of the dog refers to an old folk remedy for
rabies that included a hair of the
dog that bit you in the potion. Today it refers to drinking alcohol the next day to cure a
hangover.
You look terrible, you should have a hair of the dog that bit you.