Merge pull request #925 from bboreham/922-remove-dot

Remove trailing dot from hostnames. Fixes #922.
This commit is contained in:
Bryan Boreham committed 2015-06-16 13:58:12 +01:00
commit 9a99a51e14
4 files changed
+6 -4

No files matched your search

+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) {