diff --git a/CTng/server/Gossiper_server.go b/CTng/server/Gossiper_server.go index 8458f63..e6e975a 100644 --- a/CTng/server/Gossiper_server.go +++ b/CTng/server/Gossiper_server.go @@ -30,7 +30,6 @@ import ( type Gossiper interface { // Response to entering the 'base page' of a gossiper. - // Used to test general functionality of the homePage() // HTTP POST request, receive a JSON object from another gossiper or connected monitor. // /gossip/push-data @@ -92,7 +91,7 @@ func initializeGossiperEndpoints(c *gossip.GossiperContext) { } func homePage(w http.ResponseWriter, r *http.Request) { - fmt.Fprintf(w, "Welcome to the base page for the CTng gossiper.") + http.Error(w, "Page not found.", http.StatusNotFound) } // handleGossipObjectRequest() is run when /gossip/get-data is accessed or sent a GET request.