From 084bb33e833cac860857a5fe19e3df81e7afb5fd Mon Sep 17 00:00:00 2001 From: MickaelK Date: Wed, 9 Apr 2025 14:42:21 +1000 Subject: [PATCH] fix (s3): handle cancellation --- server/plugin/plg_backend_s3/index.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/plugin/plg_backend_s3/index.go b/server/plugin/plg_backend_s3/index.go index c3480d53..256a5573 100644 --- a/server/plugin/plg_backend_s3/index.go +++ b/server/plugin/plg_backend_s3/index.go @@ -245,7 +245,7 @@ func (this S3Backend) Cat(path string) (io.ReadCloser, error) { input.SSECustomerAlgorithm = aws.String("AES256") input.SSECustomerKey = aws.String(this.params["encryption_key"]) } - obj, err := client.GetObject(input) + obj, err := client.GetObjectWithContext(this.Context, input) if err != nil { awsErr, ok := err.(awserr.Error) if ok == false {