From BBC News:
Tiger moth caterpillars have been seen medicating themselves to treat a nasty influx of parasites. Scientists found the caterpillars’ sense of taste actually changed when they became infected with parasites. Instead of avoiding certain alkaloid plants, the caterpillars actually developed a fondness for them. This change in diet helps to beat the creatures’ parasite infection, the researchers report in Nature.
More here.