summaryrefslogtreecommitdiff
path: root/service/http/request.go
diff options
context:
space:
mode:
Diffstat (limited to 'service/http/request.go')
-rw-r--r--service/http/request.go8
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