mirror of
https://github.com/therootcompany/golib.git
synced 2026-04-24 12:48:00 +00:00
ParseMultipartForm(maxFormSize) caps post-header bytes but doesn't bound the raw body transfer, so a slow/chunked POST can burn server time before rejection. Wrap r.Body in http.MaxBytesReader so the transport cuts off over-size bodies immediately.
golib
Sometimes a little copying, sometimes a little dependency. Too small for their own repos.
The default branch is dev, but the stable, versioned tags are based on main.
Also, my Go Cheatsheet:
Languages
Go
100%