Skip to content

Commit 686f1d4

Browse files
authored
Fix a bug where strict json decoder is not used.
1 parent 88055c1 commit 686f1d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

response_handlers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@ func jsonHandler(_ string, r io.Reader, obj interface{}, strict bool) error {
4040
if strict {
4141
d.DisallowUnknownFields()
4242
}
43-
return json.NewDecoder(r).Decode(obj)
43+
return d.Decode(obj)
4444
}

0 commit comments

Comments
 (0)