Remove trailing newline from served hostname in serve_hostname

This commit is contained in:
Satnam Singh 2015-01-20 16:31:07 -08:00
parent 0b69a3f57a
commit 88e4139774

View File

@ -44,7 +44,6 @@ func main() {
if err != nil {
log.Fatalf("Error from os.Hostname(): %s", err)
}
hostname += "\n"
if *doTcp {
listener, err := net.Listen("tcp", fmt.Sprintf(":%d", *port))