Skip to content

Commit

Permalink
Optimize the initFormCache method of the Context struct
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzw committed Mar 29, 2024
1 parent 7a865dc commit 3c53115
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3c53115

Please sign in to comment.