2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-21 14:50:07 -07:00

curl: fix http content decoding flag check

This commit is contained in:
git-bruh 2024-12-11 00:29:03 +05:30
parent 0fe8bb9c5c
commit a7be016979
No known key found for this signature in database
5 changed files with 31 additions and 1 deletions

View File

@ -7,6 +7,8 @@
sed 's/\(curl_LDADD =\)/\1 -all-static/' src/Makefile.in > _
mv -f _ src/Makefile.in
patch -p1 < fix-http-dec-flag.patch
./configure \
ac_cv_path_PERL=true \
--prefix=/usr \

View File

@ -503,3 +503,4 @@ c52ad158f2bcec01a52499262cf634d02c1aaaff4abfb4e1eb26b5941d4d55a560
386fee44381a3b5d2196ab1778c8f6954955dac30236f19a0ac54fa1a5cfeae7b6
dfbeb0922974838a2fc897e9bee88d14a1e886105cc7ce389753f9711c7a40eb7f
af1349b9f5f9a1a6a0404dea36dcc9499bcb25c9adc112b7cc9a93cae41f3262e0
57fb77bf85fec7459d2f13f3ea91c51d76a236f99df50562b8a4e1bab54afc5255

View File

@ -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)

View File

@ -503,3 +503,4 @@ files/libcurl-url.3 docs/libcurl
files/libcurl-ws.3 docs/libcurl
files/libcurl.3 docs/libcurl
files/mk-ca-bundle.1 docs
patches/fix-http-dec-flag.patch

View File

@ -1 +1 @@
8.11.0 1
8.11.0 2