This is an automated email from the ASF dual-hosted git repository.

dangogh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-trafficcontrol.git

commit 861b873925435f55ee057b279d87ae3b70c706ad
Author: Dewayne Richardson <dewr...@apache.org>
AuthorDate: Wed Feb 14 13:53:26 2018 -0700

    added TO Client funcs for invoking the /divisions CRUD
---
 traffic_ops/client/division.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/traffic_ops/client/division.go b/traffic_ops/client/division.go
index cda8701..28832f9 100644
--- a/traffic_ops/client/division.go
+++ b/traffic_ops/client/division.go
@@ -101,7 +101,7 @@ func (to *Session) GetDivisionByID(id int) ([]tc.Division, 
ReqInf, error) {
 
 // GET a Division by the Division name
 func (to *Session) GetDivisionByName(name string) ([]tc.Division, ReqInf, 
error) {
-       url := fmt.Sprintf("%s/name/%s", API_v2_Divisions, name)
+       url := fmt.Sprintf("%s?name=%s", API_v2_Divisions, name)
        resp, remoteAddr, err := to.request(http.MethodGet, url, nil)
        reqInf := ReqInf{CacheHitStatus: CacheHitStatusMiss, RemoteAddr: 
remoteAddr}
        if err != nil {

-- 
To stop receiving notification emails like this one, please contact
dang...@apache.org.

Reply via email to