aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortranzystorekk <tranzystorek.io@protonmail.com>2024-11-08 13:08:09 +0000
committertranzystorekk <tranzystorek.io@protonmail.com>2024-11-08 13:28:53 +0000
commit6b9d63a81c6de04814800ceae02b0de2cceacd7a (patch)
tree7db35346de1daf9d09291527825c56398d82a73e
parent114ab20ba4329c41fa704d7a7b2638b9a3f28eb1 (diff)
downloadvoid-packages-6b9d63a81c6de04814800ceae02b0de2cceacd7a.tar
void-packages-6b9d63a81c6de04814800ceae02b0de2cceacd7a.tar.gz
void-packages-6b9d63a81c6de04814800ceae02b0de2cceacd7a.tar.bz2
void-packages-6b9d63a81c6de04814800ceae02b0de2cceacd7a.tar.lz
void-packages-6b9d63a81c6de04814800ceae02b0de2cceacd7a.tar.xz
void-packages-6b9d63a81c6de04814800ceae02b0de2cceacd7a.tar.zst
void-packages-6b9d63a81c6de04814800ceae02b0de2cceacd7a.zip
curl: add content encoding fix
-rw-r--r--srcpkgs/curl/patches/fix-content-encoding.patch26
-rw-r--r--srcpkgs/curl/template2
2 files changed, 27 insertions, 1 deletions
diff --git a/srcpkgs/curl/patches/fix-content-encoding.patch b/srcpkgs/curl/patches/fix-content-encoding.patch
new file mode 100644
index 00000000000..f64546b6e08
--- /dev/null
+++ b/srcpkgs/curl/patches/fix-content-encoding.patch
@@ -0,0 +1,26 @@
+From 878bc429f26c27294787dc59d7b53345d9edc5aa Mon Sep 17 00:00:00 2001
+From: Jesus Malo Poyatos <jmalopoy@opentext.com>
+Date: Thu, 7 Nov 2024 14:00:53 +0100
+Subject: [PATCH] setopt: fix CURLOPT_HTTP_CONTENT_DECODING
+
+Regression from 30da1f5974d34841b30c4f (shipped in 8.11.0)
+
+Fixes #15511
+Closes #15510
+---
+ lib/setopt.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/setopt.c b/lib/setopt.c
+index 4f0697212739ef..ba80644bc73279 100644
+--- a/lib/setopt.c
++++ b/lib/setopt.c
+@@ -1146,7 +1146,7 @@ static CURLcode setopt_long(struct Curl_easy *data, CURLoption option,
+ /*
+ * raw data passed to the application when content encoding is used
+ */
+- data->set.http_ce_skip = enabled;
++ data->set.http_ce_skip = !enabled; /* reversed */
+ break;
+
+ #if !defined(CURL_DISABLE_FTP) || defined(USE_SSH)
diff --git a/srcpkgs/curl/template b/srcpkgs/curl/template
index ffdf145c12f..30a17c5eb99 100644
--- a/srcpkgs/curl/template
+++ b/srcpkgs/curl/template
@@ -1,7 +1,7 @@
# Template file for 'curl'
pkgname=curl
version=8.11.0
-revision=2
+revision=3
build_style=gnu-configure
configure_args="ac_cv_sizeof_off_t=8 --enable-threaded-resolver --enable-ipv6
--with-random=/dev/urandom