feat: Added acceptRange field in GetBject backend function

This commit is contained in:
jonaustin09
2023-05-24 08:25:56 -07:00
committed by Ben McClelland
parent 70f5e0fac9
commit c5de938637
6 changed files with 29 additions and 14 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ func TestS3ApiController_GetActions(t *testing.T) {
GetObjectAttributesFunc: func(bucket, object string, attributes []string) (*s3.GetObjectAttributesOutput, error) {
return &s3.GetObjectAttributesOutput{}, nil
},
GetObjectFunc: func(bucket, object string, startOffset, length int64, writer io.Writer) (*s3.GetObjectOutput, error) {
GetObjectFunc: func(bucket, object, acceptRange string, startOffset, length int64, writer io.Writer) (*s3.GetObjectOutput, error) {
return &s3.GetObjectOutput{Metadata: nil}, nil
},
}}