Skip to content

Commit 8bd7855

Browse files
committed
Merge pull request #17 from gjohnson/superagent-fix
Ensure domain exists on access_info
2 parents 8e999f5 + 6c81b34 commit 8bd7855

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cookiejar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
return false;
138138
}
139139
}
140-
var access_domain = access_info.domain.replace(/^[\.]/,'');
140+
var access_domain = access_info.domain && access_info.domain.replace(/^[\.]/,'');
141141
var cookie_domain = this.domain && this.domain.replace(/^[\.]/,'');
142142
if (cookie_domain === access_domain) {
143143
return true;

0 commit comments

Comments
 (0)