Cookie fixes
Merge pull request #141 from JuliaLang/cookie-fixes

Cookie fixes