From 9f31128c3dbdf3fd23e05da77754d0a9430b2b5b Mon Sep 17 00:00:00 2001 From: Marcus W Barone Date: Thu, 28 Apr 2022 06:34:55 -0400 Subject: [PATCH] Gossiper /gossip/ update Updated base directory to return 404 error --- CTng/server/Gossiper_server.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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.