Skip to content

Status code 300 (Multiple Choices) #3630

@mwriter

Description

@mwriter
func GetArchiveLink(client *github.Client, ctx context.Context) (*url.URL, error) {
    return client.Repositories.GetArchiveLink(ctx, "pelletier", "git-src", "zipball", &github.RepositoryContentGetOptions{ Ref: "master" }, 100);
}

Output:

unexpected status code: 300 Multiple Choices

Is it possible to add a return to at least one of the links?
Or it's better to add a new api such as client.Repositories.GetArchiveLinks which will return all links at once.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions