diff options
author | Wolfy-J <[email protected]> | 2018-06-13 13:25:57 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-06-13 13:25:57 +0300 |
commit | 8b24183daa620bb12edf78f6e81697532cbc92d8 (patch) | |
tree | 8f05a885ccacfdb1d26a918a1f39ef6ad03a3f35 /service/http/request.go | |
parent | 142f5e61397811ea83da9989c312e929a291e590 (diff) |
more tests
Diffstat (limited to 'service/http/request.go')
-rw-r--r-- | service/http/request.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/service/http/request.go b/service/http/request.go index f3f89969..80998b11 100644 --- a/service/http/request.go +++ b/service/http/request.go @@ -75,18 +75,14 @@ func NewRequest(r *http.Request, cfg *UploadsConfig) (req *Request, err error) { return nil, err } - if req.Uploads, err = parseUploads(r, cfg); err != nil { - return nil, err - } + req.Uploads = parseUploads(r, cfg) fallthrough case contentFormData: if err = r.ParseForm(); err != nil { return nil, err } - if req.body, err = parseData(r); err != nil { - return nil, err - } + req.body = parseData(r) } req.Parsed = true |