jsalvata    2003/11/28 06:40:32

  Modified:    src/protocol/http/org/apache/jmeter/protocol/http/sampler
                        HTTPSampler.java
  Log:
  We don't need to download images, etc. for 404 pages and
  alike. This will prevent responses for non-existent images
  to be handled as frame contents.
  
  Revision  Changes    Path
  1.68      +3 -2      
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.67
  retrieving revision 1.68
  diff -u -r1.67 -r1.68
  --- HTTPSampler.java  27 Nov 2003 18:29:57 -0000      1.67
  +++ HTTPSampler.java  28 Nov 2003 14:40:32 -0000      1.68
  @@ -1118,7 +1118,8 @@
                   }
   
                   if (isImageParser()
  -                    && res.getDataType().equals(HTTPSampleResult.TEXT))
  +                    && res.getDataType().equals(HTTPSampleResult.TEXT)
  +                    && res.isSuccessful())
                   {
                       if (frameDepth > MAX_FRAME_DEPTH)
                       {
  
  
  

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

Reply via email to