From c08fdfc868403dd3fc1c52076941c71e93adb620 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 d2e49a2f..eb6ef2b8 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 }