cosmetic
This commit is contained in:
1 parent
21bec9fc78
commit
9be3a11e10
1 file changed
+2
-2
+2
-2
@@ -18,7 +18,7 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
var builddate string // set by the Makefile
|
||||
var builddate string // set by the Makefile
|
||||
|
||||
func versionString() string {
|
||||
return "Weave of " + builddate
|
||||
@@ -152,7 +152,7 @@ func handleHttp(router *weave.Router) {
|
||||
io.WriteString(w, router.Status())
|
||||
})
|
||||
http.HandleFunc("/version", func(w http.ResponseWriter, r *http.Request) {
|
||||
io.WriteString(w, versionString() + "\n")
|
||||
io.WriteString(w, versionString()+"\n")
|
||||
})
|
||||
address := fmt.Sprintf(":%d", weave.StatusPort)
|
||||
err := http.ListenAndServe(address, nil)
|
||||
|
||||
Reference in new issue
Block a user