Merge pull request #14344 from Mashimiao/add-json-check-for-execcreate

api/server: Add missing json check
This commit is contained in:
Doug Davis
2015-07-05 19:04:12 -04:00
2 changed files with 25 additions and 0 deletions
+3
View File
@@ -1349,6 +1349,9 @@ func (s *Server) postContainerExecCreate(version version.Version, w http.Respons
if err := parseForm(r); err != nil {
return err
}
if err := checkForJson(r); err != nil {
return err
}
name := vars["name"]
execConfig := &runconfig.ExecConfig{}