aboutsummaryrefslogtreecommitdiff
path: root/src/libfetchers/fetchers.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-09-29 13:05:19 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-09-29 13:05:19 +0200
commit5999978a053b3ec16f448c40b54a1a62ceb82c90 (patch)
treed08c51a3803d7eefb02b046eaed34d679b52088e /src/libfetchers/fetchers.hh
parentde86abbf3f9f0d18f7506b1d50072597786332ea (diff)
Make Headers an optional argument
Diffstat (limited to 'src/libfetchers/fetchers.hh')
-rw-r--r--src/libfetchers/fetchers.hh8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libfetchers/fetchers.hh b/src/libfetchers/fetchers.hh
index 0adc2c9f5..36d44f6e1 100644
--- a/src/libfetchers/fetchers.hh
+++ b/src/libfetchers/fetchers.hh
@@ -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 = {});
}