jsalvata    2003/12/09 08:05:43

  Modified:    src/protocol/http/org/apache/jmeter/protocol/http/sampler
                        HTTPSampler.java
  Log:
  Fix bug by which requests resulting of a redirect would have
  POST data sent equal to the original request.
  
  Revision  Changes    Path
  1.73      +3 -3      
jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler.java
  
  Index: HTTPSampler.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler.java,v
  retrieving revision 1.72
  retrieving revision 1.73
  diff -u -r1.72 -r1.73
  --- HTTPSampler.java  9 Dec 2003 00:55:59 -0000       1.72
  +++ HTTPSampler.java  9 Dec 2003 16:05:43 -0000       1.73
  @@ -734,7 +734,7 @@
               res.setRequestHeaders(hdrs);
           }
           setConnectionAuthorization(conn, u, getAuthManager());
  -        if (getMethod().equals(HTTPSampler.POST))
  +        if (method.equals(HTTPSampler.POST))
           {
               setPostHeaders(conn);
           }
  @@ -1067,7 +1067,7 @@
                   throw new BindException();
               }
               // Nice, we've got a connection. Finish sending the request:
  -            if (getMethod().equals(HTTPSampler.POST))
  +            if (method.equals(HTTPSampler.POST))
               {
                   sendPostData(conn);
               }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to