Skip to content

Commit

Permalink
[bugfix] correct update restfulapi in ctl
Browse files Browse the repository at this point in the history
  • Loading branch information
benja-wu authored and xxx7xxxx committed Sep 12, 2021
1 parent 8906c94 commit a915688
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/client/command/object.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func updateObjectCmd() *cobra.Command {
Run: func(cmd *cobra.Command, args []string) {
visitor := buildVisitorFromFileOrStdin(specFile, cmd)
visitor.Visit(func(s *spec) {
handleRequest(http.MethodPost, makeURL(objectsURL), []byte(s.doc), cmd)
handleRequest(http.MethodPut, makeURL(objectURL, s.Name), []byte(s.doc), cmd)
})
},
}
Expand Down

0 comments on commit a915688

Please sign in to comment.