diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-09-29 13:05:19 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-09-29 13:05:19 +0200 |
commit | 5999978a053b3ec16f448c40b54a1a62ceb82c90 (patch) | |
tree | d08c51a3803d7eefb02b046eaed34d679b52088e /src/libfetchers/fetchers.hh | |
parent | de86abbf3f9f0d18f7506b1d50072597786332ea (diff) |
Make Headers an optional argument
Diffstat (limited to 'src/libfetchers/fetchers.hh')
-rw-r--r-- | src/libfetchers/fetchers.hh | 8 |
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 = {}); } |