feat: HTTP debug logging in client.do()
This commit is contained in:
@@ -16,7 +16,7 @@ func TestClientAuthHeader(t *testing.T) {
|
||||
}))
|
||||
defer srv.Close()
|
||||
|
||||
c := newClient(srv.URL, "sk-test")
|
||||
c := newClient(srv.URL, "sk-test", false)
|
||||
var result struct {
|
||||
ID int `json:"id"`
|
||||
Name string `json:"name"`
|
||||
@@ -40,7 +40,7 @@ func TestClientAPIError(t *testing.T) {
|
||||
}))
|
||||
defer srv.Close()
|
||||
|
||||
c := newClient(srv.URL, "sk-test")
|
||||
c := newClient(srv.URL, "sk-test", false)
|
||||
var result any
|
||||
err := c.get(context.Background(), "/error", &result)
|
||||
if err == nil {
|
||||
|
||||
Reference in New Issue
Block a user