Don't add a trailing newline to the domain

This commit is contained in:
Bryan Boreham committed 2015-06-16 10:25:54 +01:00
1 parent 0206434f62
commit dd9adf6a65
1 file changed
+1 -1
+1 -1
View File
@@ -36,7 +36,7 @@ func ServeHTTP(listener net.Listener, version string, server *DNSServer, dockerC
})
muxRouter.Methods("GET").Path("/domain").HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintln(w, server.Zone.Domain())
fmt.Fprint(w, server.Zone.Domain())
})
muxRouter.Methods("PUT").Path("/name/{id:.+}/{ip:.+}").HandlerFunc(func(w http.ResponseWriter, r *http.Request) {