From 7ea083bc6d548406ae952846439c06f966faeb51 Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Sun, 15 Dec 2019 10:16:47 -0800 Subject: [PATCH] Add newline to text output --- server.go | 2 +- what-is-my-ip.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server.go b/server.go index d09d104..7b62ef7 100644 --- a/server.go +++ b/server.go @@ -121,7 +121,7 @@ func (s *Server) sendResponse(resp http.ResponseWriter, ip *IP, responseType res body = buffer.Bytes() default: - body = []byte(ip.String()) + body = []byte(ip.String() + "\n") } if err != nil { diff --git a/what-is-my-ip.go b/what-is-my-ip.go index dc59018..3b82c82 100644 --- a/what-is-my-ip.go +++ b/what-is-my-ip.go @@ -20,7 +20,7 @@ const ( func main() { app := cli.NewApp() app.Name = appName - app.Version = "0.5.0" + app.Version = "0.6.0" app.Usage = "Webapp that gives the IP address for incoming requests" app.Action = action