From d45eb6f92d90bbcc7980dd5cfc7afa7ae07742e9 Mon Sep 17 00:00:00 2001 From: Josh Baker Date: Wed, 14 Sep 2016 09:36:31 -0700 Subject: [PATCH] using bulkstring for info command #37 --- controller/stats.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/stats.go b/controller/stats.go index d20df309..4de8b85a 100644 --- a/controller/stats.go +++ b/controller/stats.go @@ -233,7 +233,7 @@ func (c *Controller) cmdInfo(msg *server.Message) (res string, err error) { } res = `{"ok":true,"info":` + string(data) + `,"elapsed":"` + time.Now().Sub(start).String() + "\"}" case server.RESP: - data, err := resp.StringValue(w.String()).MarshalRESP() + data, err := resp.BytesValue(w.Bytes()).MarshalRESP() if err != nil { return "", err }