()
| 636 | } |
| 637 | |
| 638 | func (c *Context) initFormCache() { |
| 639 | if c.formCache == nil { |
| 640 | c.formCache = make(url.Values) |
| 641 | req := c.Request |
| 642 | if err := req.ParseMultipartForm(c.engine.MaxMultipartMemory); err != nil { |
| 643 | if !errors.Is(err, http.ErrNotMultipart) { |
| 644 | debugPrint("error on parse multipart form array: %v", err) |
| 645 | } |
| 646 | } |
| 647 | c.formCache = req.PostForm |
| 648 | } |
| 649 | } |
| 650 | |
| 651 | // GetPostFormArray returns a slice of strings for a given form key, plus |
| 652 | // a boolean value whether at least one value exists for the given key. |
no test coverage detected