curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_ACCEPT_ENCODING and unknown / unsolicited encodings

From: Patrick Monnerat via curl-library <curl-library_at_cool.haxx.se>
Date: Wed, 22 Aug 2018 17:06:04 +0200

On 08/22/2018 04:43 PM, Rainer Canavan via curl-library wrote:
> Apologies for dredging up an issue that has been apparently been in
> published curl versions since at least about a year, but we've only
> just encountered it while upgrading a system from Ubuntu 17.10 to
> 18.04. The relevant commit is
> https://github.com/curl/curl/commit/dbcced8e32b50c068ac297106f0502ee200a1ebd#diff-ff9fb98500e598660ec2dcd2d8193aac
> if I'm not mistaken.
This would have helped us much to have the curl version rather than the
Ubuntu's. After grepping Ubuntu's repository, it appears that curl's
version is 7.58.0.
>
> In curl versions up to at least 7.56.0, setting
> CURLOPT_ACCEPT_ENCODING to values other than NULL resulted in curl
> decoding "gzip" and "deflate" and quietly passing any other Encoding,
> such as "None", which is mistakenly used by one of our customers.
"None" is recognized from 7.59.0, containing the commit
https://github.com/curl/curl/commit/f886cbfe9c3055999d8174b2eedc826d0d9a54f1
that implements it. Maybe Ubuntu should upgrade ;-)

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-08-22