Merge pull request #1773 from brgaulin/master
OAuth2 GHE Always Register BustedURL
This commit is contained in:
commit
8eef2365ff
1 changed files with 3 additions and 0 deletions
|
@ -67,6 +67,9 @@ func New(opts Opts) (remote.Remote, error) {
|
|||
remote.URL = strings.TrimSuffix(opts.URL, "/")
|
||||
remote.API = remote.URL + "/api/v3/"
|
||||
}
|
||||
|
||||
// Hack to enable oauth2 access in older GHE
|
||||
oauth2.RegisterBrokenAuthHeaderProvider(remote.URL)
|
||||
return remote, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue