v1.0.6
This commit is contained in:
1 parent
7ccd84cd96
commit
f96ab6054d
22 files changed
+2815
-32
No files matched your search
@@ -17,10 +17,6 @@ import (
|
||||
)
|
||||
|
||||
func (c *Client) Decode(v any, body []byte, contentType string) (err error) {
|
||||
if len(body) == 0 {
|
||||
return nil
|
||||
}
|
||||
|
||||
if jsonCheck.MatchString(contentType) {
|
||||
if actualObj, ok := v.(interface{ GetActualInstance() any }); ok {
|
||||
if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok {
|
||||
|
||||
Reference in new issue
Block a user