Open
Description
When calling catalog.NewClient(WithToken("AUTH TOKEN"))
the functions updates the http.DefaultClient.Transport
with a new http.Roundtrip
function.
This means any other call using http.DefaultClient
, including http.Get()
and http.Post()
, as they are wrappers of http.DefaultClient
, also call the http.Roundtrip
function so overriding any Authorization Header set.
I think catalog.Client
needs to either make a clean copy of http.DefaultClient
or use &http.Client{}
for it's httpClient
.
Metadata
Assignees
Labels
No labels