Skip to content

Accept Header Issue #12

Description

@cpheps

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions