Skip to content

Commit

Permalink
Merge pull request #11693 from liggitt/gitlab
Browse files Browse the repository at this point in the history
Merged by openshift-bot
  • Loading branch information
OpenShift Bot authored Nov 2, 2016
2 parents 537c0a5 + 92eed7a commit 21040e2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/auth/oauth/external/gitlab/gitlab.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ func (p *provider) GetUserIdentity(data *osincli.AccessData) (authapi.UserIdenti
req, _ := http.NewRequest("GET", p.userAPIURL, nil)
req.Header.Set("Authorization", fmt.Sprintf("bearer %s", data.AccessToken))

res, err := http.DefaultClient.Do(req)
client := http.DefaultClient
if p.transport != nil {
client = &http.Client{Transport: p.transport}
}
res, err := client.Do(req)
if err != nil {
return nil, false, err
}
Expand Down

0 comments on commit 21040e2

Please sign in to comment.