mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-10-24 16:30:21 +08:00
Added '\r\n\r\n' delimiter to server.go error returned to the client
This commit is contained in:
@@ -208,7 +208,7 @@ func (server *Server) handleConnection(ctx context.Context, conn net.Conn) {
|
|||||||
res, err := server.handleCommand(ctx, message, &conn, false)
|
res, err := server.handleCommand(ctx, message, &conn, false)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if _, err = w.Write([]byte(fmt.Sprintf("-Error %s", err.Error()))); err != nil {
|
if _, err = w.Write([]byte(fmt.Sprintf("-Error %s\r\n\r\n", err.Error()))); err != nil {
|
||||||
log.Println(err)
|
log.Println(err)
|
||||||
}
|
}
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user