mirror of
https://github.com/rancher/norman.git
synced 2025-09-05 09:10:31 +00:00
remove the checks on some return values, which was added recently by another PR, to make it work when being used in rancher
This commit is contained in:
@@ -293,10 +293,7 @@ func parseAction(url *url.URL) (string, string) {
|
||||
}
|
||||
|
||||
func Body(req *http.Request) (map[string]interface{}, error) {
|
||||
err := req.ParseMultipartForm(maxFormSize)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
_ = req.ParseMultipartForm(maxFormSize)
|
||||
if req.MultipartForm != nil {
|
||||
return valuesToBody(req.MultipartForm.Value), nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user