Added support multipart/form-data #109

This commit is contained in:
Aleksandr Didenko
2015-03-08 15:43:37 +01:00
committed by Javier Provecho Fernandez
parent 0f46ae2b81
commit 0fb7bed1c0
3 changed files with 30 additions and 11 deletions
+2
View File
@@ -295,6 +295,8 @@ func (c *Context) Bind(obj interface{}) bool {
switch {
case c.Request.Method == "GET" || ctype == MIMEPOSTForm:
b = binding.Form
case ctype == MIMEMultipartPOSTForm:
b = binding.MultipartForm
case ctype == MIMEJSON:
b = binding.JSON
case ctype == MIMEXML || ctype == MIMEXML2: