mirror of https://github.com/gofiber/fiber.git
parent
e85a29abf3
commit
2a3ee9ca41
|
@ -826,6 +826,10 @@ func (a *Agent) Struct(v interface{}) (code int, body []byte, errs []error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if a.jsonDecoder == nil {
|
||||||
|
a.jsonDecoder = json.Unmarshal
|
||||||
|
}
|
||||||
|
|
||||||
if err := a.jsonDecoder(body, v); err != nil {
|
if err := a.jsonDecoder(body, v); err != nil {
|
||||||
errs = append(errs, err)
|
errs = append(errs, err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue