aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2023-02-09 17:15:25 +0100
committerGitHub <noreply@github.com>2023-02-09 17:15:25 +0100
commite46429f6742c7352ed6161870610327ddce63483 (patch)
tree2ac71176244392edffe392045add125ec678df96 /src
parente4a2a5c074f8faf947a8864ca2acea85a8fc6ab7 (diff)
parentf20d3726dd9031a4ec311c77f30caa7cc493138b (diff)
Merge pull request #7712 from Mic92/advertise-compressions
advertise transport encoding in http transfers to
Diffstat (limited to 'src')
-rw-r--r--src/libstore/filetransfer.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstore/filetransfer.cc b/src/libstore/filetransfer.cc
index 756bd4423..b25089ec3 100644
--- a/src/libstore/filetransfer.cc
+++ b/src/libstore/filetransfer.cc
@@ -101,6 +101,7 @@ struct curlFileTransfer : public FileTransfer
this->result.data.append(data);
})
{
+ requestHeaders = curl_slist_append(requestHeaders, "Accept-Encoding: zstd, br, gzip, deflate, bzip2, xz");
if (!request.expectedETag.empty())
requestHeaders = curl_slist_append(requestHeaders, ("If-None-Match: " + request.expectedETag).c_str());
if (!request.mimeType.empty())