]> git.ipfire.org Git - pakfire.git/commitdiff
xfer: Enable all supported encodings
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 27 Oct 2023 11:31:43 +0000 (11:31 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 27 Oct 2023 11:31:43 +0000 (11:31 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/xfer.c

index 7541072be7c294f3e466a29ea991f261235abc1d..e86618820846c568ee01e9e0e98c125ab6a97f3b 100644 (file)
@@ -245,6 +245,9 @@ static int pakfire_xfer_setup(struct pakfire_xfer* xfer) {
        // Limit protocols to HTTPS, HTTP, FTP and FILE
        curl_easy_setopt(xfer->handle, CURLOPT_PROTOCOLS_STR, "HTTPS,HTTP,FTP,FILE");
 
+       // Allow all support encodings
+       curl_easy_setopt(xfer->handle, CURLOPT_ACCEPT_ENCODING, "");
+
        // Reference back to this xfer
        curl_easy_setopt(xfer->handle, CURLOPT_PRIVATE, xfer);