jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1749584 - /jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/visualizers/RequestViewHTTP.java
Date Tue, 21 Jun 2016 18:30:06 GMT
Author: fschumacher
Date: Tue Jun 21 18:30:05 2016
New Revision: 1749584

URL: http://svn.apache.org/viewvc?rev=1749584&view=rev
Log:
Use return value of decodeQuery directly instead of reassigning the parameter.

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/visualizers/RequestViewHTTP.java

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/visualizers/RequestViewHTTP.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/visualizers/RequestViewHTTP.java?rev=1749584&r1=1749583&r2=1749584&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/visualizers/RequestViewHTTP.java
(original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/visualizers/RequestViewHTTP.java
Tue Jun 21 18:30:05 2016
@@ -298,9 +298,8 @@ public class RequestViewHTTP implements
         String[] params = query.split(PARAM_CONCATENATE);
         for (String param : params) {
             String[] paramSplit = param.split("=");
-            String name = paramSplit[0];
-            name = decodeQuery(name);
-            
+            String name = decodeQuery(paramSplit[0]);
+
             // hack for SOAP request (generally)
             if (name.trim().startsWith("<?")) { // $NON-NLS-1$
                 map.put(" ", new String[] {query}); //blank name // $NON-NLS-1$
@@ -315,8 +314,7 @@ public class RequestViewHTTP implements
 
             String value = "";
             if(paramSplit.length>1) {
-                value = paramSplit[1];
-                value = decodeQuery(value);
+                value = decodeQuery(paramSplit[1]);
             }
             
             String[] known = map.get(name);



Mime
View raw message