Skip to content

Commit 7318ffd

Browse files
author
Nico Muerdter
committed
use pace/bricks transport chain
1 parent 60da6e7 commit 7318ffd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

oidc.go

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import (
1616
"strings"
1717
"time"
1818

19+
brickstransport "github.com/pace/bricks/http/transport"
1920
"golang.org/x/oauth2"
2021
jose "gopkg.in/square/go-jose.v2"
2122
)
@@ -60,6 +61,7 @@ func doRequest(ctx context.Context, req *http.Request) (*http.Response, error) {
6061
if c, ok := ctx.Value(oauth2.HTTPClient).(*http.Client); ok {
6162
client = c
6263
}
64+
client.Transport = brickstransport.NewDefaultTransportChain()
6365
return client.Do(req.WithContext(ctx))
6466
}
6567

0 commit comments

Comments
 (0)