Optimize the initFormCache method of the Context struct

This commit is contained in:
huangzw 2024-03-29 14:36:00 +08:00
parent 7a865dcf1d
commit 3c531156ff

View File

@ -538,7 +538,6 @@ func (c *Context) PostFormArray(key string) (values []string) {
func (c *Context) initFormCache() {
if c.formCache == nil {
c.formCache = make(url.Values)
req := c.Request
if err := req.ParseMultipartForm(c.engine.MaxMultipartMemory); err != nil {
if !errors.Is(err, http.ErrNotMultipart) {