diff --git a/presigned_url.go b/presigned_url.go index 7cb699c..ea7513d 100644 --- a/presigned_url.go +++ b/presigned_url.go @@ -20,7 +20,7 @@ func (c Client) GetPresignedURL(ctx context.Context, bucket, object, fileType st // add content type for video if fileType == ListTypes.Video { - parts := strings.Split(object, ".")[1] + parts := strings.Split(object, ".") reqParams.Set("response-content-type", fmt.Sprintf("video/%s", parts[len(parts)-1])) }