diff options
author | Wolfy-J <[email protected]> | 2018-06-13 13:19:04 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-06-13 13:19:04 +0300 |
commit | 142f5e61397811ea83da9989c312e929a291e590 (patch) | |
tree | 3bf6389402483423fc17c8e982fc9dada0639fb5 /service/http/request.go | |
parent | 436d4bc263137640b4f0a58e27a82619bca10e85 (diff) |
more tests
Diffstat (limited to 'service/http/request.go')
-rw-r--r-- | service/http/request.go | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/service/http/request.go b/service/http/request.go index 5ed151cd..f3f89969 100644 --- a/service/http/request.go +++ b/service/http/request.go @@ -71,16 +71,14 @@ func NewRequest(r *http.Request, cfg *UploadsConfig) (req *Request, err error) { return req, err case contentMultipart: - //if err = r.ParseMultipartForm(defaultMaxMemory); err != nil { - // return nil, err - // } - - /* if req.Uploads, err = parseUploads(r, cfg); err != nil { - return nil, err - } - fallthrough*/ + if err = r.ParseMultipartForm(defaultMaxMemory); err != nil { + return nil, err + } - // todo: debug all that + if req.Uploads, err = parseUploads(r, cfg); err != nil { + return nil, err + } + fallthrough case contentFormData: if err = r.ParseForm(); err != nil { return nil, err |