diff options
Diffstat (limited to 'internal/httplib/httplib.go')
-rw-r--r-- | internal/httplib/httplib.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/httplib/httplib.go b/internal/httplib/httplib.go index 55b17d93..729e0e03 100644 --- a/internal/httplib/httplib.go +++ b/internal/httplib/httplib.go @@ -250,7 +250,7 @@ func (r *Request) getResponse() (*http.Response, error) { } if r.req.Method == "GET" && len(paramBody) > 0 { - if strings.Index(r.url, "?") != -1 { + if strings.Contains(r.url, "?") { r.url += "&" + paramBody } else { r.url = r.url + "?" + paramBody |