From 45ec4b3f8b23bf6b350a508ff9722066f7072134 Mon Sep 17 00:00:00 2001 From: HFO4 <912394456@qq.com> Date: Tue, 10 Mar 2020 19:15:09 +0800 Subject: [PATCH] Fix: wrong upload URL for cos policy --- models/policy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/policy.go b/models/policy.go index 325c876..ea04035 100644 --- a/models/policy.go +++ b/models/policy.go @@ -220,7 +220,7 @@ func (policy *Policy) GetUploadURL() string { case "oss": return "https://" + policy.BucketName + "." + policy.Server case "cos": - return policy.BaseURL + return policy.Server case "upyun": return "http://v0.api.upyun.com/" + policy.BucketName default: