3 Commits

Author SHA1 Message Date
elix3r
98bc3d1347 fix(binding): add optional size limit for BSON and Protobuf bodies
BSON and Protobuf binders used io.ReadAll with no cap. Add
binding.MaxBodyBytes (default 0, unlimited) and a shared reader so
apps can bound those binders without changing historical defaults.
Oversized bodies return *http.MaxBytesError, which MustBindWith
already maps to HTTP 413.

Fixes #4759

Signed-off-by: elix3r <157088510+22elix3r@users.noreply.github.com>
2026-08-27 07:30:16 +05:30
Bob Du
ba093d1947
chore(binding): upgrade bson dependency to mongo-driver v2 (#4549)
Signed-off-by: Bob Du <i@bobdu.cc>
2026-02-27 23:20:01 +08:00
Laurent Caumont
d7776de7d4
feat(render): add bson protocol (#4145) 2026-01-27 10:09:01 +08:00