From 38af58eb9bafd0cb06f8337895bff772b7aa191a Mon Sep 17 00:00:00 2001 From: nimrodishi <45099489+nimrodishi@users.noreply.github.com> Date: Wed, 10 Jan 2024 11:47:54 +0200 Subject: [PATCH] Update json.go --- binding/json.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binding/json.go b/binding/json.go index 59b91bd8..cbc2c8da 100644 --- a/binding/json.go +++ b/binding/json.go @@ -38,7 +38,7 @@ func (jsonBinding) Bind(req *http.Request, obj any) error { if err != nil { return err } - return decodeJSON(req.Body, obj) + return decodeJSON(body, obj) } func (jsonBinding) BindBody(body []byte, obj any) error {