They are both correct. Use 'an' when the /h/ is not pronounced or pronounced in a very unstressed position: A holiday, a holy war, a hooligan, a herb (BrE) An herb (AmE), an Hawaiian shirt, an honest man .
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.