1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00
fog--fog-aws/lib
Stan Hu 3546408e47 Filter unknown UploadPartCopy paramaters
Previously attempting to use S3 server side encryption headers
(e.g. `x-amz-server-side-encryption`) would fail when attempting to use
`File#copy` because the method would pass these headers to the UploadPartCopy
(https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html)
API call. However, this would fail with an error:

```
<Code>InvalidArgument</Code>
<Message>x-amz-server-side-encryption header is not supported for this operation.</Message>
<ArgumentName>x-amz-server-side-encryption</ArgumentName>
<ArgumentValue>AES256</ArgumentValue>
```

This header can and should be used in the CompleteMultipartUpload
call. To support this, we filter out unknown headers in the
UploadPartCopy.
2021-01-09 21:35:18 -08:00
..
fog Filter unknown UploadPartCopy paramaters 2021-01-09 21:35:18 -08:00
fog-aws.rb Add a top-level require that matches the gem name 2017-05-24 10:17:08 -07:00