jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1577906 - /jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/HttpMirrorThread.java
Date Sat, 15 Mar 2014 17:24:35 GMT
Author: sebb
Date: Sat Mar 15 17:24:35 2014
New Revision: 1577906

URL: http://svn.apache.org/r1577906
Log:
MirrorServer should support query parameters for status and redirects
Oops! Allow for queries that don't have "=" in them
Bugzilla Id: 56272

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/HttpMirrorThread.java

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/HttpMirrorThread.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/HttpMirrorThread.java?rev=1577906&r1=1577905&r2=1577906&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/HttpMirrorThread.java
(original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/HttpMirrorThread.java
Sat Mar 15 17:24:35 2014
@@ -116,8 +116,9 @@ public class HttpMirrorThread implements
                         String params[] = query.split("&");
                         for(String param : params) {
                             String parts[] = param.split("=",2);
-                            parameters.put(parts[0], parts[1]);
-                            System.err.println(parts[0]+ "=>" + parts[1]);
+                            if (parts.length==2) {
+                                parameters.put(parts[0], parts[1]);
+                            }
                         }
                     }
                 } catch (URISyntaxException e) {



Mime
View raw message