Merge pull request #1773 from brgaulin/master

OAuth2 GHE Always Register BustedURL
This commit is contained in:
Brad Rydzewski
2016-08-25 17:58:38 -07:00
committed by GitHub

View File

@@ -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
}