forked from Mirrors/oauth2
oauth2: remove misleading Transport.RoundTrip comment
This removes any assumption about how the underlying TokenSource is implemented. Change-Id: I03521e2f26bd07e25eb6ba00a78c285ece1835cc Reviewed-on: https://go-review.googlesource.com/114955 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
30b72dfc06
commit
ec22f46f87
|
@ -31,8 +31,7 @@ type Transport struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
// RoundTrip authorizes and authenticates the request with an
|
// RoundTrip authorizes and authenticates the request with an
|
||||||
// access token. If no token exists or token is expired,
|
// access token from Transport's Source.
|
||||||
// tries to refresh/fetch a new token.
|
|
||||||
func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error) {
|
func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error) {
|
||||||
reqBodyClosed := false
|
reqBodyClosed := false
|
||||||
if req.Body != nil {
|
if req.Body != nil {
|
||||||
|
|
Loading…
Reference in New Issue