Added function body to getHeader

getHeader was missing a function body
This statement should be wrapped in parenthesis.  Every other loop and test conditional you have contains parenthesis, so should this one.