[Httpunit-commit] CVS: httpunit/src/com/meterware/httpunit/cookies CookieJar.java,1.5,1.6
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2004-02-12 06:27:49
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/cookies In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11592/src/com/meterware/httpunit/cookies Modified Files: CookieJar.java Log Message: bug #873169: Add space between multiple cookies to match browser behavior Index: CookieJar.java =================================================================== RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/cookies/CookieJar.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- CookieJar.java 17 Jun 2003 23:26:38 -0000 1.5 +++ CookieJar.java 12 Feb 2004 06:23:08 -0000 1.6 @@ -155,13 +155,13 @@ Cookie cookie = (Cookie) i.next(); if (!cookie.mayBeSentTo( targetURL )) continue; restrictedCookies.add( cookie.getName() ); - if (sb.length() != 0) sb.append( ';' ); + if (sb.length() != 0) sb.append( "; " ); sb.append( cookie.getName() ).append( '=' ).append( cookie.getValue() ); } for (Iterator i = _globalCookies.iterator(); i.hasNext();) { Cookie cookie = (Cookie) i.next(); if (restrictedCookies.contains( cookie.getName() )) continue; - if (sb.length() != 0) sb.append( ';' ); + if (sb.length() != 0) sb.append( "; " ); sb.append( cookie.getName() ).append( '=' ).append( cookie.getValue() ); } return sb.length() == 0 ? null : sb.toString(); |