using bulkstring for info command #37

This commit is contained in:
Josh Baker 2016-09-14 09:36:31 -07:00
parent 7fba512cb2
commit d45eb6f92d
1 changed files with 1 additions and 1 deletions

View File

@ -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() + "\"}" res = `{"ok":true,"info":` + string(data) + `,"elapsed":"` + time.Now().Sub(start).String() + "\"}"
case server.RESP: case server.RESP:
data, err := resp.StringValue(w.String()).MarshalRESP() data, err := resp.BytesValue(w.Bytes()).MarshalRESP()
if err != nil { if err != nil {
return "", err return "", err
} }