summaryrefslogtreecommitdiffstats
path: root/app/command.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/command.go')
-rw-r--r--app/command.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/command.go b/app/command.go
index 124668f6b..a1902bd10 100644
--- a/app/command.go
+++ b/app/command.go
@@ -233,7 +233,11 @@ func (a *App) ExecuteCommand(args *model.CommandArgs) (*model.CommandResponse, *
var req *http.Request
if cmd.Method == model.COMMAND_METHOD_GET {
req, _ = http.NewRequest(http.MethodGet, cmd.URL, nil)
- req.URL.RawQuery = p.Encode()
+
+ if req.URL.RawQuery != "" {
+ req.URL.RawQuery += "&"
+ }
+ req.URL.RawQuery += p.Encode()
} else {
req, _ = http.NewRequest(http.MethodPost, cmd.URL, strings.NewReader(p.Encode()))
}