work on KVBuffer exhausted semantics

This commit is contained in:
Patricio Whittingslow
2026-07-29 15:37:09 -03:00
parent e346cd98d1
commit 546f11e375
9 changed files with 131 additions and 204 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ func (f *Form) Parse() error {
key, value, rest := NextQueryPair(f.kv.buf)
for key != nil {
if !f.kv.setInternal(key, value) {
return errOOM
return ErrBufferExhausted
}
key, value, rest = NextQueryPair(rest)
}