You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by fs...@apache.org on 2019/09/29 09:46:38 UTC

[jmeter] branch master updated: Generate url String in one go

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 <fe...@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");