From 9ad7095e2d879ad89ce728b4b2d1413c8f103401 Mon Sep 17 00:00:00 2001 From: wenyekui Date: Mon, 4 Aug 2014 10:17:30 +0800 Subject: [PATCH] modify accesslog format --- server/request.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/server/request.go b/server/request.go index 5c80284..0531a37 100644 --- a/server/request.go +++ b/server/request.go @@ -107,12 +107,9 @@ func (req *requestContext) catGenericCommand() []byte { buffer.Write([]byte(req.cmd)) - nargs := len(req.args) - for i, arg := range req.args { + for _, arg := range req.args { + buffer.WriteByte(' ') buffer.Write(arg) - if i != nargs-1 { - buffer.WriteByte(' ') - } } return buffer.Bytes()