You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by pm...@apache.org on 2012/11/08 13:02:07 UTC

svn commit: r1407026 - in /jmeter/trunk: src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampleResult.java xdocs/changes.xml

Author: pmouawad
Date: Thu Nov  8 12:02:06 2012
New Revision: 1407026

URL: http://svn.apache.org/viewvc?rev=1407026&view=rev
Log:
Bug 54119 - HTTP 307 response is not redirected
Bugzilla Id: 54119

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampleResult.java
    jmeter/trunk/xdocs/changes.xml

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampleResult.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampleResult.java?rev=1407026&r1=1407025&r2=1407026&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampleResult.java (original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampleResult.java Thu Nov  8 12:02:06 2012
@@ -101,6 +101,10 @@ public class HTTPSampleResult extends Sa
                 return true;
             }
         }
+        if ("307".equals(code) && 
+                ("GET".equals(getHTTPMethod()) || "HEAD".equals(getHTTPMethod()))) {
+            return true;
+        }
         return false;
     }
 

Modified: jmeter/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/xdocs/changes.xml?rev=1407026&r1=1407025&r2=1407026&view=diff
==============================================================================
--- jmeter/trunk/xdocs/changes.xml (original)
+++ jmeter/trunk/xdocs/changes.xml Thu Nov  8 12:02:06 2012
@@ -106,6 +106,7 @@ It has been removed so now size of these
 <li><bugzilla>53997</bugzilla> - LDAP Extended Request: Escape ampersand (&amp;), left angle bracket (&lt;) 
 and right angle bracket (&gt;) in search filter tag in XML response data</li>
 <li><bugzilla>53995</bugzilla> - AbstractJDBCTestElement shares PreparedStatement between multi-threads</li>
+<li><bugzilla>54119</bugzilla> - HTTP 307 response is not redirected</li>
 </ul>
 
 <h3>Controllers</h3>