Add upload method

This commit is contained in:
Nikola Knezevic
2020-04-08 22:26:57 +02:00
parent a0c5931208
commit 7848372b0f
3 changed files with 10 additions and 2 deletions
+1 -2
View File
@@ -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([](
});
}