Merge branch 'weierophinney-hotfix/4105'
[#4555] Do not double-decode gzipped responses via cURL

- cURL's CURLOPT_ENCODING setting can allow auto-decoding a response.
  Detect if set appropriately, and, if so, strip the Content-Encoding
  header in the response.
Merge branch 'hotfix/4555' into develop

Forward port #4555