From df6714af4021c3316a26b8e1cae62247f82bdcef Mon Sep 17 00:00:00 2001 From: Andy Hsu Date: Wed, 22 Feb 2023 20:20:28 +0800 Subject: [PATCH] fix: missed assignment [skip ci] --- server/common/base.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/common/base.go b/server/common/base.go index d2e49a2fd89..eb6ef2b8ac2 100644 --- a/server/common/base.go +++ b/server/common/base.go @@ -25,6 +25,6 @@ func GetApiUrl(r *http.Request) string { } api = fmt.Sprintf("%s://%s", protocol, stdpath.Join(host, api)) } - strings.TrimSuffix(api, "/") + api = strings.TrimSuffix(api, "/") return api }