fix multipart

This commit is contained in:
astaxie 2013-04-10 00:24:28 +08:00
parent 465ed4b72f
commit dc5dab3dbb
1 changed files with 2 additions and 1 deletions

View File

@ -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()