Skip to content

Commit

Permalink
fix: remove request body validation in Update
Browse files Browse the repository at this point in the history
Signed-off-by: Allen Sun <allensun.shl@alibaba-inc.com>
  • Loading branch information
allencloud committed Jun 21, 2018
1 parent 419e353 commit 2b8a144
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions apis/server/container_bridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,6 @@ func (s *Server) updateContainer(ctx context.Context, rw http.ResponseWriter, re
if err := json.NewDecoder(req.Body).Decode(config); err != nil {
return httputils.NewHTTPError(err, http.StatusBadRequest)
}
// validate request body
if err := config.Validate(strfmt.NewFormats()); err != nil {
return httputils.NewHTTPError(err, http.StatusBadRequest)
}

name := mux.Vars(req)["name"]

Expand Down

0 comments on commit 2b8a144

Please sign in to comment.