Skip to content

Commit

Permalink
Fix aliyun oss 502 callback failed.
Browse files Browse the repository at this point in the history
  • Loading branch information
feiyueha committed Jun 22, 2024
1 parent 3edb00a commit 841b395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/filesystem/driver/oss/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ func (handler *Driver) Token(ctx context.Context, ttl int64, uploadSession *seri

// 回调策略
callbackPolicy := CallbackPolicy{
CallbackURL: apiURL.String(),
CallbackURL: strings.Replace(apiURL.String(), "https://", "http://", 1),
CallbackBody: `{"name":${x:fname},"source_name":${object},"size":${size},"pic_info":"${imageInfo.width},${imageInfo.height}"}`,
CallbackBodyType: "application/json",
}
Expand Down

0 comments on commit 841b395

Please # to comment.