mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-10-21 06:59:24 +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)
|
||||
|
||||
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)
|
||||
}
|
||||
continue
|
||||
|
Reference in New Issue
Block a user