Skip to content

Commit 44088d9

Browse files
committed
remove suffix complement
1 parent 740c167 commit 44088d9

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

rest/client.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ func complementURL(url string) string {
6262
if !strings.HasPrefix(url, "http") {
6363
url = "http://" + url
6464
}
65-
if !strings.HasSuffix(url, "/api2/json") {
66-
url += "/api2/json"
67-
}
6865
return url
6966
}
7067

0 commit comments

Comments
 (0)