You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by se...@apache.org on 2014/03/15 18:24:35 UTC

svn commit: r1577906 - /jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/HttpMirrorThread.java

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) {