Added function body to getHeader

getHeader was missing a function body