Skip to content

Commit

Permalink
modify the register api for rasp-cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
tangyouyi1513 committed Dec 16, 2019
1 parent c89e088 commit cbcd5ea
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cloud/src/rasp-cloud/controllers/agent/rasp.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ func (o *RaspController) Post() {
if len(rasp.ServerType) >= 256 {
o.ServeError(http.StatusBadRequest, "the length of rasp server type must be less than 256")
}
if rasp.ServerVersion == "" {
o.ServeError(http.StatusBadRequest, "the server version can not be empty")
}
if len(rasp.ServerVersion) >= 50 {
o.ServeError(http.StatusBadRequest, "the length of rasp server version must be less than 50")
}
Expand Down

0 comments on commit cbcd5ea

Please sign in to comment.