I've run into an issue when using the DownloadReleaseAsset function in the github.com/google/go-github library. It appears the GitHub API will not correctly download a release asset binary when two Accept headers are present.
Transport.RoundTrip adds it's own Accept header which causes the download to fail as the API is looking for a single header with the value application/octet-stream.
Here is the link the the GitHub API documentation https://developer.github.com/v3/repos/releases/#get-a-single-release-asset
I've run into an issue when using the DownloadReleaseAsset function in the
github.com/google/go-githublibrary. It appears the GitHub API will not correctly download a release asset binary when twoAcceptheaders are present.Transport.RoundTrip adds it's own
Acceptheader which causes the download to fail as the API is looking for a single header with the valueapplication/octet-stream.Here is the link the the GitHub API documentation https://developer.github.com/v3/repos/releases/#get-a-single-release-asset