Closed tricknotes closed 8 years ago
@tricknotes Out of curiosity, what OS are you using and what version of libcurl?
This looks like an easy fix, and I think we can get this done for you. But at some point we will have to stop supporting very old versions of libcurl. (7.21.6 came out almost exactly 5 years ago.) It is helpful to know which versions of libcurl are still common and which OSs have older versions.
Apparently your CURL version does not support CURLOPT_ACCEPT_ENCODING, which has been put in recently. I will place it under an ifdef guard
@tricknotes can you verify that the branch in the pull request under this issue solves your problem please?
@toland
$ cat /etc/redhat-release
CentOS release 6.2 (Final)
I know that this is too old version ...
@julik Great thanks! I'll try it within hours. Please wait a moment.
@julik https://github.com/toland/patron/pull/110 works fine for me :sunny:
$ cat Gemfile
source 'https://rubygems.org'
gem 'patron', github: 'julik/patron', branch: 'conditional-accept-encoding'
$ bundle exec ruby -e "require 'patron'; puts Patron::VERSION"
0.6.0
👍 @toland I will merge, can you release 0.6.1 please?
@julik Will do.
The release is done. 0.6.1 is on rubygems.
Thanks for your awesome work!
patron couldn't be built with older libcurl since this commit https://github.com/toland/patron/commit/405dc9f015c58e0d12496a7a988763aaa97cd14e .
This problem is caused by the
CURLOPT_ACCEPT_ENCODING
variable.Are there any chance to work on older libcurl?