mirror of
https://github.com/soypat/lneto.git
synced 2026-08-15 04:13:44 +00:00
mid refactor of KVBuffer into Header
This commit is contained in:
@@ -434,7 +434,7 @@ func (exch *Exchange) RequestParseForm(dst *httpraw.Form, buf []byte) error {
|
||||
|
||||
length, present, err := exch.RequestContentLength()
|
||||
if !present {
|
||||
dst.Reset(nil)
|
||||
dst.Reset(nil, 0)
|
||||
return nil // No length is no body, RFC 9112 6.3.
|
||||
} else if err != nil {
|
||||
return err
|
||||
@@ -454,7 +454,7 @@ func (exch *Exchange) RequestParseForm(dst *httpraw.Form, buf []byte) error {
|
||||
return err
|
||||
}
|
||||
}
|
||||
dst.Reset(buf)
|
||||
dst.Reset(buf, 0)
|
||||
return dst.Parse()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user