You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
When calling
catalog.NewClient(WithToken("AUTH TOKEN"))
the functions updates thehttp.DefaultClient.Transport
with a newhttp.Roundtrip
function.This means any other call using
http.DefaultClient
, includinghttp.Get()
andhttp.Post()
, as they are wrappers ofhttp.DefaultClient
, also call thehttp.Roundtrip
function so overriding any Authorization Header set.I think
catalog.Client
needs to either make a clean copy ofhttp.DefaultClient
or use&http.Client{}
for it'shttpClient
.The text was updated successfully, but these errors were encountered: