fix: missed assignment [skip ci]

This commit is contained in:
Andy Hsu 2023-02-22 20:20:28 +08:00
parent 1b28e6af3e
commit c08fdfc868

View File

@ -25,6 +25,6 @@ func GetApiUrl(r *http.Request) string {
} }
api = fmt.Sprintf("%s://%s", protocol, stdpath.Join(host, api)) api = fmt.Sprintf("%s://%s", protocol, stdpath.Join(host, api))
} }
strings.TrimSuffix(api, "/") api = strings.TrimSuffix(api, "/")
return api return api
} }