Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GithubLatest: Use curl options in request
We can't pass curl options to `GitHub#get_latest_release`, so we have to switch to an `#open_rest` call in `GithubLatest`. The former method simply creates the API URL from a username and repository before calling `#open_rest`. We already generate the same URL, so we're not losing anything with this switch. This maintains the existing API request but we're able to properly use `DEFAULT_CURL_OPTIONS`, which notably ensures that the curl command isn't printed in the middle of carefully-crafted `brew livecheck --debug` output, among other things.
- Loading branch information