fixed getHeader call to return a string rather than an object
minor optimization