1
0
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:
Jiaqi Luo
2022-12-02 20:27:19 -07:00
parent c943439888
commit 29dae41a91
2 changed files with 3 additions and 9 deletions

View File

@@ -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
}