commit c0638e15e0cc574c04e09209ad2ab7e69be08d52
parent 4c1eb2d904aadccdc11d021d403437090f33ebd8
Author: parazyd <parazyd@dyne.org>
Date: Thu, 21 Dec 2017 13:42:44 +0100
Use the constant WelcomeMsg in dam-dir.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/dam-dir/main.go b/cmd/dam-dir/main.go
@@ -132,7 +132,7 @@ func handlePost(rw http.ResponseWriter, request *http.Request) {
us := request.Host // Assume our name is what was requested as the URL.
if strings.HasPrefix(us, "localhost") {
// No need to propagate to ourself.
- ret = map[string]string{"secret": "Welcome to the DAM network!"}
+ ret = map[string]string{"secret": lib.WelcomeMsg}
if err := postback(rw, ret, 200); err != nil {
lib.CheckError(err)
}