Compare commits
2 Commits
v0.0.1-alp
...
v0.0.1-alp
| Author | SHA1 | Date | |
|---|---|---|---|
| 5626d6341e | |||
| 825508ed03 |
@@ -13,6 +13,7 @@ import (
|
|||||||
"path"
|
"path"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
|
"log"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -274,6 +275,8 @@ func (c *Client) do(ctx context.Context, method, relativeURL string, reqBody int
|
|||||||
|
|
||||||
// TODO: check rc in addition to status code?
|
// TODO: check rc in addition to status code?
|
||||||
|
|
||||||
|
log.Printf("%+v", respBody)
|
||||||
|
log.Printf("%+v", resp.Body)
|
||||||
err = json.NewDecoder(resp.Body).Decode(respBody)
|
err = json.NewDecoder(resp.Body).Decode(respBody)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("unable to decode body: %s %s %w", method, relativeURL, err)
|
return fmt.Errorf("unable to decode body: %s %s %w", method, relativeURL, err)
|
||||||
|
|||||||
Reference in New Issue
Block a user