p2p/simulations: removed requirement for a mocker from network

This commit is contained in:
Fabio Barone 2017-06-29 09:00:35 -05:00
parent 3946fc3bb3
commit c47cc688ea

View file

@ -320,7 +320,8 @@ func (s *Server) StartMocker(w http.ResponseWriter, req *http.Request) {
mockerid := req.Context().Value("mock").(string)
if len(s.Mockers) == 0 {
http.Error(w, "mocker not configured", http.StatusInternalServerError)
//don't require a mocker to be present
s.JSON(w, http.StatusNotModified, "No mocker configured")
return
}