Commit fa5e3d1d authored by M. Hamza's avatar M. Hamza
Browse files

fix msgType logic in vis.go in meep-vis

parent 560ae253
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -804,7 +804,7 @@ func subscriptionsPost(w http.ResponseWriter, r *http.Request) {

		for _, msgTypeString := range v2xSubscription.FilterCriteria.MsgType {
			msgTypeInt, err := strconv.Atoi(msgTypeString)
			if msgTypeInt < 0 || msgTypeInt > 255 {
			if msgTypeInt < 1 || msgTypeInt > 255 {
				log.Error("MsgType parameter should be between 1 and 255")
				errHandlerProblemDetails(w, "MsgType parameter should be between 1 and 255 in the request body.", http.StatusBadRequest)
				return