From 280cda623803ab62697b384d9551642aa1bf2ffb Mon Sep 17 00:00:00 2001 From: crusader Date: Fri, 6 Apr 2018 19:44:51 +0900 Subject: [PATCH] ing --- protocol/json/server_request.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/json/server_request.go b/protocol/json/server_request.go index d23e716..06a5442 100644 --- a/protocol/json/server_request.go +++ b/protocol/json/server_request.go @@ -132,7 +132,7 @@ func (src *ServerRequestCodec) NewResponseWithString(reply string, err error) ([ res := src.newServerResponse(nil, err) r := strings.TrimSpace(reply) - if "" != r { + if nil == err && "" != r { var i interface{} mErr := json.Unmarshal([]byte(r), &i) if nil != mErr {