[Httpunit-commit] CVS: httpunit/src/com/meterware/httpunit/cookies CookieJar.java,1.4,1.5
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2003-06-17 23:26:41
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/cookies
In directory sc8-pr-cvs1:/tmp/cvs-serv12536/src/com/meterware/httpunit/cookies
Modified Files:
CookieJar.java
Log Message:
fixed bug #750846: Cannot retrieve all cookie names when both global and site-specific cookies are defined.
Index: CookieJar.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/cookies/CookieJar.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- CookieJar.java 17 Jun 2003 11:08:25 -0000 1.4
+++ CookieJar.java 17 Jun 2003 23:26:38 -0000 1.5
@@ -101,7 +101,7 @@
names[i] = ((Cookie) _globalCookies.get(i)).getName();
}
for (int i = numGlobalCookies; i < names.length; i++) {
- names[ i + numGlobalCookies ] = ((Cookie) _cookies.get(i)).getName();
+ names[i] = ((Cookie) _cookies.get( i-numGlobalCookies )).getName();
}
return names;
}
|