Protect against undefined error on header not set
Merge pull request #9 from ronco/master

Protect against undefined error on header not set