修复: 连接回退池校验与进度重试累计等四处
- connect 失败回退目标校验仍在池中,防幻影本地列表 - SFTP 下载/上传进度跨重试累计,重试入口重置基线 - OSS 签名 base64 改标准字母表,URL 字母表致校验必败 - 剪切粘贴同目录 no-op 清剪贴板,防源文件被改名副本
This commit is contained in:
@@ -489,7 +489,8 @@ func (c *Client) GetSignedURL(ctx context.Context, key string, expiresIn time.Du
|
||||
stringToSign := "GET\n\n\n" + fmt.Sprintf("%d", expiration) + "\n" + path
|
||||
h := hmac.New(sha1.New, []byte(c.config.AccessKeySecret))
|
||||
h.Write([]byte(stringToSign))
|
||||
signature := base64.URLEncoding.EncodeToString(h.Sum(nil))
|
||||
// 阿里云签名规范是标准 base64 字母表并保留 padding,= 由下方 QueryEscape 转义
|
||||
signature := base64.StdEncoding.EncodeToString(h.Sum(nil))
|
||||
|
||||
scheme := "https://"
|
||||
if !c.config.UseHTTPS {
|
||||
|
||||
Reference in New Issue
Block a user