1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-30 06:01:00 +01:00

Make Headers an optional argument

This commit is contained in:
Eelco Dolstra 2020-09-29 13:05:19 +02:00
parent de86abbf3f
commit 5999978a05
9 changed files with 23 additions and 25 deletions

View file

@ -118,15 +118,15 @@ struct DownloadFileResult
DownloadFileResult downloadFile(
ref<Store> store,
const std::string & url,
const Headers & headers,
const std::string & name,
bool immutable);
bool immutable,
const Headers & headers = {});
std::pair<Tree, time_t> downloadTarball(
ref<Store> store,
const std::string & url,
const Headers & headers,
const std::string & name,
bool immutable);
bool immutable,
const Headers & headers = {});
}