mirror of
https://github.com/soypat/lneto.git
synced 2026-08-11 18:33:46 +00:00
explicit naming of headerCapacityKV value in kvBuffer.Reset
This commit is contained in:
@@ -80,7 +80,7 @@ func ExampleMuxSlice_query_forms_multipart() {
|
||||
// Request Body Form. The form owns the memory: hand it a buffer and
|
||||
// forbid growth to bound what a request may spend.
|
||||
var form httpraw.Form
|
||||
form.Reset(make([]byte, 0, 1024), 8)
|
||||
form.Reset(make([]byte, 0, 1024), 8) // Room for 8 pairs.
|
||||
form.EnableBufferGrowth(false)
|
||||
err := ex.RequestParseForm(&form, false, false)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user