aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/download.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/download.hh')
-rw-r--r--src/libstore/download.hh5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libstore/download.hh b/src/libstore/download.hh
index bdb5011e7..62f3860b9 100644
--- a/src/libstore/download.hh
+++ b/src/libstore/download.hh
@@ -15,7 +15,7 @@ struct DownloadRequest
bool verifyTLS = true;
enum { yes, no, automatic } showProgress = yes;
bool head = false;
- size_t tries = 1;
+ size_t tries = 5;
unsigned int baseRetryTimeMs = 250;
DownloadRequest(const std::string & uri) : uri(uri) { }
@@ -73,4 +73,7 @@ public:
bool isUri(const string & s);
+/* Decode data according to the Content-Encoding header. */
+ref<std::string> decodeContent(const std::string & encoding, ref<std::string> data);
+
}