mirror of
https://github.com/soypat/lneto.git
synced 2026-08-29 10:59:03 +00:00
work on KVBuffer exhausted semantics
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user