Fix has cookie handling
Merge pull request #76 from chuckdumont/master

Fix has cookie handling