mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-10-30 09:37:55 +08:00
fix (s3): handle cancellation
This commit is contained in:
@ -245,7 +245,7 @@ func (this S3Backend) Cat(path string) (io.ReadCloser, error) {
|
|||||||
input.SSECustomerAlgorithm = aws.String("AES256")
|
input.SSECustomerAlgorithm = aws.String("AES256")
|
||||||
input.SSECustomerKey = aws.String(this.params["encryption_key"])
|
input.SSECustomerKey = aws.String(this.params["encryption_key"])
|
||||||
}
|
}
|
||||||
obj, err := client.GetObject(input)
|
obj, err := client.GetObjectWithContext(this.Context, input)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
awsErr, ok := err.(awserr.Error)
|
awsErr, ok := err.(awserr.Error)
|
||||||
if ok == false {
|
if ok == false {
|
||||||
|
|||||||
Reference in New Issue
Block a user