panic bf url
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 3m36s
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 3m36s
This commit is contained in:
parent
55ff89f179
commit
395e83acf6
@ -6,7 +6,9 @@ import (
|
||||
)
|
||||
|
||||
func BuildUrl(url, path string, params *map[string]string) string {
|
||||
if path[:1] == "/" && url[len(url)-1:] == "/" {
|
||||
if len(url) == 0 || len(path) == 0 {
|
||||
url += path
|
||||
} else if path[:1] == "/" && url[len(url)-1:] == "/" {
|
||||
url += path[1:]
|
||||
} else if path[:1] != "/" && url[len(url)-1:] != "/" {
|
||||
url += "/" + path
|
||||
|
Loading…
x
Reference in New Issue
Block a user