Skip to content

Commit

Permalink
Merge pull request #38 from Finesse/hotfix/http-request-value
Browse files Browse the repository at this point in the history
Add a missing space to the strings produced for `cookie:`
  • Loading branch information
andyburke authored Sep 29, 2021
2 parents fbed912 + 77a3fe9 commit 68425a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cookiejar.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@
matches.toValueString = function toValueString() {
return matches.map(function (c) {
return c.toValueString();
}).join(';');
}).join('; ');
};
return matches;
};
Expand Down
2 changes: 1 addition & 1 deletion tests/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ test_jar.setCookies(
+":c=3;domain=test.com;path=/;expires=January 1, 1970");
var cookies=test_jar.getCookies(CookieAccessInfo("test.com","/"))
assert.equal(cookies.length, 2, "Expires on setCookies fail\n" + cookies.toString());
assert.equal(cookies.toValueString(), 'a=1;b=2', "Cannot get value string of multiple cookies");
assert.equal(cookies.toValueString(), 'a=1; b=2', "Cannot get value string of multiple cookies");

cookies=test_jar.getCookies(CookieAccessInfo("www.test.com","/"))
assert.equal(cookies.length, 2, "Wildcard domain fail\n" + cookies.toString());
Expand Down

0 comments on commit 68425a1

Please sign in to comment.