What am I?

What loses its head in the morning but gets it back at night?