Added function body to getHeader

getHeader was missing a function body
Depends on the circumstance.  For instructional purposes, I would agree.  But in a scalable server application I would say probably not.  It's perfectly fine to keep it in though.