Skip to content

Commit

Permalink
feat: even more tracing of hidden HTTP requests
Browse files Browse the repository at this point in the history
  • Loading branch information
alnr committed Apr 4, 2023
1 parent 40ab76a commit 9d8b1e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion courier/template/load_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func loadRemoteTemplate(ctx context.Context, d templateDependencies, url string,
b = t.([]byte)
} else {
f := fetcher.NewFetcher(fetcher.WithClient(d.HTTPClient(ctx)))
bb, err := f.Fetch(url)
bb, err := f.FetchContext(ctx, url)
if err != nil {
return nil, errors.WithStack(err)
}
Expand Down
2 changes: 1 addition & 1 deletion selfservice/strategy/oidc/strategy_registration.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ func (s *Strategy) processRegistration(w http.ResponseWriter, r *http.Request, r
}

fetch := fetcher.NewFetcher(fetcher.WithClient(s.d.HTTPClient(r.Context())))
jn, err := fetch.Fetch(provider.Config().Mapper)
jn, err := fetch.FetchContext(r.Context(), provider.Config().Mapper)
if err != nil {
return nil, s.handleError(w, r, rf, provider.Config().ID, nil, err)
}
Expand Down

0 comments on commit 9d8b1e2

Please sign in to comment.