提交 dc5dab3d 编写于 作者: A astaxie

fix multipart

上级 465ed4b7
......@@ -12,6 +12,7 @@ import (
"net/url"
"path"
"strconv"
"strings"
)
type Controller struct {
......@@ -172,7 +173,7 @@ func (c *Controller) ServeXml() {
func (c *Controller) Input() url.Values {
ct := c.Ctx.Request.Header.Get("Content-Type")
if ct == "multipart/form-data" {
if strings.Contains(ct, "multipart/form-data") {
c.Ctx.Request.ParseMultipartForm(MaxMemory) //64MB
} else {
c.Ctx.Request.ParseForm()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册