File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6262 return this . name + "=" + this . value ;
6363 } ;
6464
65- var cookie_str_splitter = / [: ] (? = \s * [ a - z A - Z 0 - 9 _ \- ] + \s * [ = ] ) / g;
65+ var cookie_str_splitter = / [ , ] (? = \s * [ a - z A - Z 0 - 9 _ \- ] + \s * [ = ] ) / g;
6666 Cookie . prototype . parse = function parse ( str , request_domain , request_path ) {
6767 if ( this instanceof Cookie ) {
6868 var parts = str . split ( ";" ) . filter ( function ( value ) {
Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ assert.equal(cookie.domain, ".test.com");
2626var test_jar = CookieJar ( ) ;
2727test_jar . setCookies (
2828 "a=1;domain=.test.com;path=/"
29- + ": b=2;domain=test.com;path=/"
30- + ": c=3;domain=test.com;path=/;expires=January 1, 1970" ) ;
29+ + ", b=2;domain=test.com;path=/"
30+ + ", c=3;domain=test.com;path=/;expires=January 1, 1970" ) ;
3131var cookies = test_jar . getCookies ( CookieAccessInfo ( "test.com" , "/" ) )
3232assert . equal ( cookies . length , 2 , "Expires on setCookies fail\n" + cookies . toString ( ) ) ;
3333assert . equal ( cookies . toValueString ( ) , 'a=1;b=2' , "Cannot get value string of multiple cookies" ) ;
You can’t perform that action at this time.
0 commit comments