mirror of
https://github.com/NixOS/nix
synced 2025-06-25 14:51:16 +02:00
Add upload method
This commit is contained in:
parent
a0c5931208
commit
7848372b0f
3 changed files with 10 additions and 2 deletions
|
@ -107,7 +107,7 @@ protected:
|
|||
req.data = std::make_shared<string>(data); // FIXME: inefficient
|
||||
req.mimeType = mimeType;
|
||||
try {
|
||||
getDataTransfer()->download(req);
|
||||
getDataTransfer()->upload(req);
|
||||
} catch (DataTransferError & e) {
|
||||
throw UploadToHTTP("while uploading to HTTP binary cache at '%s': %s", cacheUri, e.msg());
|
||||
}
|
||||
|
@ -174,4 +174,3 @@ static RegisterStoreImplementation regStore([](
|
|||
});
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue