From 97f0ef435e331c0ac9c3192d7bf8c6fec86e7f0d Mon Sep 17 00:00:00 2001 From: CornierKhan1 Date: Fri, 7 Sep 2018 08:49:08 +1000 Subject: [PATCH] Better responses --- main.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index d8d8250..9bdcc8a 100644 --- a/main.go +++ b/main.go @@ -110,7 +110,7 @@ type UNR struct { } func main() { - fmt.Println("Starting HTTP connection (Port 8000)...") + fmt.Println("Starting HTTP connection (Port 80)...") http.HandleFunc("/", handler) // each request calls handler log.Fatal(http.ListenAndServe(":80", nil)) } @@ -119,9 +119,7 @@ func handler(w http.ResponseWriter, r *http.Request) { // Get a sexy new timestamp to use. timestampnano := strconv.FormatInt(time.Now().UTC().Unix(), 10) - fmt.Println(timestampnano) timestamp := timestampnano + "000" - fmt.Println(timestamp) fmt.Println("-=Incoming request!=-") body, err := ioutil.ReadAll(r.Body) @@ -427,5 +425,5 @@ func handler(w http.ResponseWriter, r *http.Request) { } } - fmt.Println("-=End of Request.=-") + fmt.Println("-=End of Request.=-"+"\n") }