Commit 3fafe88a authored by Darren Shepherd's avatar Darren Shepherd Committed by Erik Wilson
Browse files

Add WrappedRoundTripper() to tokenSourceTransport

No related merge requests found
Showing with 4 additions and 0 deletions
+4 -0
......@@ -64,6 +64,10 @@ type tokenSourceTransport struct {
ort http.RoundTripper
}
func (tst *tokenSourceTransport) WrappedRoundTripper() http.RoundTripper {
return tst.base
}
func (tst *tokenSourceTransport) RoundTrip(req *http.Request) (*http.Response, error) {
// This is to allow --token to override other bearer token providers.
if req.Header.Get("Authorization") != "" {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment