Skip to content

gh doesn't follow http redirects #106

@rockneurotiko

Description

@rockneurotiko

The API v3 sometimes uses HTTP redirections, for example when the repository's name has changed.

Github documentation about the redirections: https://docs.github.com/en/free-pro-team@latest/rest/overview/resources-in-the-rest-api#http-redirects

I found this when trying to use magit-gh-pulls on a repository that had changed the name recently and I didn't updated the origin url, digging on the responses I saw that github was answering with a Moved Permanently redirect but gh wasn't following it.

Comment on magit-gh-pulls about it: sigma/magit-gh-pulls#107 (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