From 921818bca208f0c70e85ec670074cb3905cbbc82 Mon Sep 17 00:00:00 2001 From: Niall Sheridan Date: Sat, 27 Aug 2016 01:32:30 +0100 Subject: Update dependencies --- vendor/google.golang.org/api/oauth2/v2/oauth2-gen.go | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'vendor/google.golang.org/api/oauth2') diff --git a/vendor/google.golang.org/api/oauth2/v2/oauth2-gen.go b/vendor/google.golang.org/api/oauth2/v2/oauth2-gen.go index 268592b..dd23316 100644 --- a/vendor/google.golang.org/api/oauth2/v2/oauth2-gen.go +++ b/vendor/google.golang.org/api/oauth2/v2/oauth2-gen.go @@ -332,10 +332,7 @@ func (c *GetCertForOpenIdConnectCall) doRequest(alt string) (*http.Response, err req, _ := http.NewRequest("GET", urls, body) req.Header = reqHeaders googleapi.SetOpaque(req.URL) - if c.ctx_ != nil { - return ctxhttp.Do(c.ctx_, c.s.client, req) - } - return c.s.client.Do(req) + return gensupport.SendRequest(c.ctx_, c.s.client, req) } // Do executes the "oauth2.getCertForOpenIdConnect" call. @@ -444,10 +441,7 @@ func (c *TokeninfoCall) doRequest(alt string) (*http.Response, error) { req, _ := http.NewRequest("POST", urls, body) req.Header = reqHeaders googleapi.SetOpaque(req.URL) - if c.ctx_ != nil { - return ctxhttp.Do(c.ctx_, c.s.client, req) - } - return c.s.client.Do(req) + return gensupport.SendRequest(c.ctx_, c.s.client, req) } // Do executes the "oauth2.tokeninfo" call. @@ -566,10 +560,7 @@ func (c *UserinfoGetCall) doRequest(alt string) (*http.Response, error) { req, _ := http.NewRequest("GET", urls, body) req.Header = reqHeaders googleapi.SetOpaque(req.URL) - if c.ctx_ != nil { - return ctxhttp.Do(c.ctx_, c.s.client, req) - } - return c.s.client.Do(req) + return gensupport.SendRequest(c.ctx_, c.s.client, req) } // Do executes the "oauth2.userinfo.get" call. @@ -680,10 +671,7 @@ func (c *UserinfoV2MeGetCall) doRequest(alt string) (*http.Response, error) { req, _ := http.NewRequest("GET", urls, body) req.Header = reqHeaders googleapi.SetOpaque(req.URL) - if c.ctx_ != nil { - return ctxhttp.Do(c.ctx_, c.s.client, req) - } - return c.s.client.Do(req) + return gensupport.SendRequest(c.ctx_, c.s.client, req) } // Do executes the "oauth2.userinfo.v2.me.get" call. -- cgit v1.2.3