url format improved
This commit is contained in:
parent
3c14c64f4a
commit
208f69ae7e
@ -45,7 +45,7 @@ func (p *PeerCache) urlFormat(url string, dt tools.DataType) string {
|
|||||||
if t != "" {
|
if t != "" {
|
||||||
url = strings.Replace(url, t, dt.API()+":8080", -1)
|
url = strings.Replace(url, t, dt.API()+":8080", -1)
|
||||||
} else {
|
} else {
|
||||||
strings.ReplaceAll(url, localhost, dt.API()+":8080")
|
url = strings.ReplaceAll(url, localhost, dt.API()+":8080")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
url = url + "/" + dt.API()
|
url = url + "/" + dt.API()
|
||||||
|
Loading…
Reference in New Issue
Block a user