don't forget the Cocaine!
Actually the Coca-Cola formula contained extracts of the Coca leaf and Cola nut, rather than pure cocaine. While definitely containing cocaine, it's difficult to say exactly how much. It's safe to that it didn't produce *exactly* the same effect as "shooting a line", just as snorting ground-up caffeine pills is going to give you a completely different effect from drinking a cup of coffee. It was also marketed as a medicinal tonic, not a beverage, and in the 1800s "coca extracts" were highly common in such preparations, as it was believed by some that the benefits of the coca leaf outweighed its risks.
The coca leaf actually has a wide and varied history of use in tribal South America. It didn't have the stigma it does today until people figured out how to refine its active ingredient.
snopes.com: Cocaine in Coca-Cola