We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e25d725 commit 1730d38Copy full SHA for 1730d38
1 file changed
cookiejar.js
@@ -78,7 +78,7 @@
78
79
var key = pair[1];
80
var value = pair[2];
81
- if (!key || !value) {
+ if ( typeof key !== 'string' || key.length === 0 || typeof value !== 'string' ) {
82
console.warn("Unable to extract values from cookie header. Cookie: '"+str+"'");
83
return;
84
}
0 commit comments