mirror of
https://github.com/harness/drone.git
synced 2025-05-21 11:29:52 +08:00
Merge pull request #1773 from brgaulin/master
OAuth2 GHE Always Register BustedURL
This commit is contained in:
commit
8eef2365ff
@ -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 New Issue
Block a user