refactor(media): 资源分发 - 统一资源访问策略与云存储重定向

This commit is contained in:
ddCat committed 2026-09-22 21:41:00 +08:00
1 parent af6633047c
commit 487c34bfeb
50 files changed
+2112 -1266

No files matched your search

+3 -3
View File
@@ -57,9 +57,9 @@ func TestS3ObjectOperationsUsePathStyleSessionTokenAndNoManagedHeaders(t *testin
if err != nil {
t.Fatal(err)
}
data, _ := io.ReadAll(stream.body)
_ = stream.body.Close()
if stream.statusCode != http.StatusPartialContent || stream.contentRange != "bytes 0-3/7" || string(data) != "payl" {
data, _ := io.ReadAll(stream.Body)
_ = stream.Body.Close()
if stream.StatusCode != http.StatusPartialContent || stream.ContentRange != "bytes 0-3/7" || string(data) != "payl" {
t.Fatalf("stream = %#v, body = %q", stream, data)
}
if err := deleteS3Object(setting, "prefix/object.txt"); err != nil {