Update json.go

This commit is contained in:
nimrodishi 2024-01-10 11:47:54 +02:00 committed by GitHub
parent dd85b9721e
commit 38af58eb9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ func (jsonBinding) Bind(req *http.Request, obj any) error {
if err != nil { if err != nil {
return err return err
} }
return decodeJSON(req.Body, obj) return decodeJSON(body, obj)
} }
func (jsonBinding) BindBody(body []byte, obj any) error { func (jsonBinding) BindBody(body []byte, obj any) error {