Merge pull request #2 from MinnieTheMoocher/master

corrected header search logic