Loading go-apps/meep-tm/server/mts/mts.go +2 −8 Original line number Diff line number Diff line Loading @@ -684,7 +684,7 @@ func mtsSessionPost(w http.ResponseWriter, r *http.Request) { if requestBody.TrafficDirection != "00" && requestBody.TrafficDirection != "01" && requestBody.TrafficDirection != "10" { log.Error("Valid trafficDirection value should be provided") errHandlerProblemDetails(w, "Valid trafficDirection value shoudl be provided in the request body.", http.StatusBadRequest) errHandlerProblemDetails(w, "Valid trafficDirection value should be provided in the request body.", http.StatusBadRequest) return } Loading Loading @@ -1146,7 +1146,7 @@ func mtsSessionPut(w http.ResponseWriter, r *http.Request) { if requestBodyPut.TrafficDirection != "" { if requestBodyPut.TrafficDirection != "00" && requestBodyPut.TrafficDirection != "01" && requestBodyPut.TrafficDirection != "10" { log.Error("Valid trafficDirection value should be provided") errHandlerProblemDetails(w, "Valid trafficDirection value shoudl be provided in the request body.", http.StatusBadRequest) errHandlerProblemDetails(w, "Valid trafficDirection value should be provided in the request body.", http.StatusBadRequest) return } } else { Loading @@ -1155,12 +1155,6 @@ func mtsSessionPut(w http.ResponseWriter, r *http.Request) { return } if requestBodyPut.AppName == "" { if storedMtsSession.AppName != "" { requestBodyPut.AppName = storedMtsSession.AppName } } // timestamp to send in response seconds := time.Now().Unix() nanoseconds := time.Now().UnixNano() Loading Loading
go-apps/meep-tm/server/mts/mts.go +2 −8 Original line number Diff line number Diff line Loading @@ -684,7 +684,7 @@ func mtsSessionPost(w http.ResponseWriter, r *http.Request) { if requestBody.TrafficDirection != "00" && requestBody.TrafficDirection != "01" && requestBody.TrafficDirection != "10" { log.Error("Valid trafficDirection value should be provided") errHandlerProblemDetails(w, "Valid trafficDirection value shoudl be provided in the request body.", http.StatusBadRequest) errHandlerProblemDetails(w, "Valid trafficDirection value should be provided in the request body.", http.StatusBadRequest) return } Loading Loading @@ -1146,7 +1146,7 @@ func mtsSessionPut(w http.ResponseWriter, r *http.Request) { if requestBodyPut.TrafficDirection != "" { if requestBodyPut.TrafficDirection != "00" && requestBodyPut.TrafficDirection != "01" && requestBodyPut.TrafficDirection != "10" { log.Error("Valid trafficDirection value should be provided") errHandlerProblemDetails(w, "Valid trafficDirection value shoudl be provided in the request body.", http.StatusBadRequest) errHandlerProblemDetails(w, "Valid trafficDirection value should be provided in the request body.", http.StatusBadRequest) return } } else { Loading @@ -1155,12 +1155,6 @@ func mtsSessionPut(w http.ResponseWriter, r *http.Request) { return } if requestBodyPut.AppName == "" { if storedMtsSession.AppName != "" { requestBodyPut.AppName = storedMtsSession.AppName } } // timestamp to send in response seconds := time.Now().Unix() nanoseconds := time.Now().UnixNano() Loading