From 3c531156ff3ed2feed42dd5e034b45e376418d97 Mon Sep 17 00:00:00 2001 From: huangzw Date: Fri, 29 Mar 2024 14:36:00 +0800 Subject: [PATCH] Optimize the initFormCache method of the Context struct --- context.go | 1 - 1 file changed, 1 deletion(-) diff --git a/context.go b/context.go index afc3c353..b400805d 100644 --- a/context.go +++ b/context.go @@ -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) {