mirror of
https://github.com/NixOS/nix
synced 2025-06-25 23:11:16 +02:00
Disable the S3 content-encoding patch
Since we're not using multi-part uploads at the moment, we can drop this patch.
This commit is contained in:
parent
fc59fe029b
commit
6323b0729a
3 changed files with 7 additions and 2 deletions
|
@ -292,11 +292,14 @@ struct S3BinaryCacheStoreImpl : public S3BinaryCacheStore
|
|||
|
||||
if (transferManager) {
|
||||
|
||||
if (contentEncoding != "")
|
||||
throw Error("setting a content encoding is not supported with S3 multi-part uploads");
|
||||
|
||||
std::shared_ptr<TransferHandle> transferHandle =
|
||||
transferManager->UploadFile(
|
||||
stream, bucketName, path, mimeType,
|
||||
Aws::Map<Aws::String, Aws::String>(),
|
||||
nullptr, contentEncoding);
|
||||
nullptr /*, contentEncoding */);
|
||||
|
||||
transferHandle->WaitUntilFinished();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue