fix url building
This commit is contained in:
1 parent
84fe20aea4
commit
508da7f9cb
1 file changed
+1
-1
@@ -34,7 +34,7 @@ func (c *Cli) Do(method string, strurl string, body []byte) (*http.Response, err
|
||||
if strings.HasSuffix(addr, "/") {
|
||||
addr = addr[:len(addr)-1]
|
||||
}
|
||||
if !strings.HasPrefix(strurl, "") {
|
||||
if !strings.HasPrefix(strurl, "/") {
|
||||
strurl = "/" + strurl
|
||||
}
|
||||
strurl = addr + strurl
|
||||
|
||||
Reference in new issue
Block a user