cvs commit: jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/control CookieManager.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

cvs commit: jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/control CookieManager.java

sebb-3
sebb        2005/05/26 16:41:01

  Modified:    src/protocol/http/org/apache/jmeter/protocol/http/control
                        CookieManager.java
  Log:
  Default path should be that of url
  Add a bit more debug
 
  Revision  Changes    Path
  1.38      +8 -3      jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/control/CookieManager.java
 
  Index: CookieManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/control/CookieManager.java,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- CookieManager.java 25 May 2005 22:58:03 -0000 1.37
  +++ CookieManager.java 26 May 2005 23:41:01 -0000 1.38
  @@ -352,6 +352,9 @@
        */
       public void addCookieFromHeader(String cookieHeader, URL url)
       {
  +        if (log.isDebugEnabled()) {
  +            log.debug("addCookieFromHeader("+cookieHeader+","+url.toExternalForm()+")");
  +        }
           StringTokenizer st = new StringTokenizer(cookieHeader, ";");
           String nvp;
   
  @@ -363,7 +366,9 @@
           String domain = "."+url.getHost(); // this is the default
                   // the leading dot breaks the standard, but helps in
                   // reproducing actual browser behaviour.
  -        String path = "/"; // this is the default
  +        // The default is the path of the reques URL
  +        String path = url.getPath();
  +        if (path.length() == 0) path = "/"; // default if no path specified
   
           Cookie newCookie =
               new Cookie(
 
 
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]