jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject [jmeter] branch master updated: Generate url String in one go
Date Sun, 29 Sep 2019 09:46:38 GMT
This is an automated email from the ASF dual-hosted git repository.

fschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git


The following commit(s) were added to refs/heads/master by this push:
     new a1d8517  Generate url String in one go
a1d8517 is described below

commit a1d85179cb83465fcf213aaf121ad2020ce23092
Author: Felix Schumacher <felix.schumacher@internetallee.de>
AuthorDate: Sat Sep 28 21:34:47 2019 +0200

    Generate url String in one go
---
 .../java/org/apache/jmeter/protocol/http/curl/BasicCurlParser.java     | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/curl/BasicCurlParser.java
b/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/curl/BasicCurlParser.java
index 96aea9e..8e57618 100644
--- a/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/curl/BasicCurlParser.java
+++ b/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/curl/BasicCurlParser.java
@@ -778,8 +778,7 @@ public class BasicCurlParser {
                 }
             }
             if (isPostToGet) {
-                String url = request.getUrl();
-                url += "?" + request.getPostData();
+                String url = request.getUrl() + "?" + request.getPostData();
                 request.setUrl(url);
                 request.setPostData(null);
                 request.setMethod("GET");


Mime
View raw message