diff --git a/controller/controller.go b/controller/controller.go index a7ddef58..3778244e 100644 --- a/controller/controller.go +++ b/controller/controller.go @@ -247,7 +247,11 @@ func (c *Controller) handleInputCommand(conn *server.Conn, msg *server.Message, if err != nil { return err } - _, err = io.WriteString(w, res+"\r\n") + _, err = io.WriteString(w, res) + if err != nil { + return err + } + _, err = io.WriteString(w, "\r\n") return err case server.RESP: var err error