[MacPorts] #55011: livecheck should have curl request a compressed response

MacPorts noreply at macports.org
Fri Oct 6 03:50:48 UTC 2017


#55011: livecheck should have curl request a compressed response
-------------------------+-------------------
 Reporter:  ryandesign   |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  base         |    Version:  2.4.2
 Keywords:               |       Port:
-------------------------+-------------------
 Today I noticed that youtube-dl's livecheck was not matching anymore. The
 reason seems to be that, although we are not requesting one, GitHub is
 delivering a gzip-compressed response.

 Arguably, it is a bug for GitHub to deliver a compressed response when one
 was not requested.

 Arguably, it is a bug for curl not to decompress a compressed response it
 received.

 Nevertheless, to avoid the problem, and also to save bandwidth, we should
 request a compressed response when doing livecheck. The command line flag
 for this is `--compressed`. The equivalent libcurl option is to set
 `CURLOPT_ACCEPT_ENCODING` to `""`. Note that before curl 7.21.6 this was
 called `CURLOPT_ENCODING`, and we should include code for that to support
 old versions of Mac OS X.

--
Ticket URL: <https://trac.macports.org/ticket/55011>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list