summaryrefslogtreecommitdiff
path: root/service/http/request.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-13 13:19:04 +0300
committerWolfy-J <[email protected]>2018-06-13 13:19:04 +0300
commit142f5e61397811ea83da9989c312e929a291e590 (patch)
tree3bf6389402483423fc17c8e982fc9dada0639fb5 /service/http/request.go
parent436d4bc263137640b4f0a58e27a82619bca10e85 (diff)
more tests
Diffstat (limited to 'service/http/request.go')
-rw-r--r--service/http/request.go16
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