write http response as three chunks

This commit is contained in:
Josh Baker 2016-08-26 07:35:19 -07:00
parent b73cc35749
commit c68e60ed2f
1 changed files with 5 additions and 1 deletions

View File

@ -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