From 4ea81f170a164b611b792d6c0e632d38f8953d64 Mon Sep 17 00:00:00 2001 From: Hector Chu Date: Mon, 7 Sep 2015 15:09:59 +0100 Subject: [PATCH] rpc/comms: fix bug attaching the console over http --- rpc/comms/http.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpc/comms/http.go b/rpc/comms/http.go index c165aa27e1..f4a930d0ef 100644 --- a/rpc/comms/http.go +++ b/rpc/comms/http.go @@ -271,13 +271,13 @@ func (self *httpClient) Send(req interface{}) error { reply, _ := ioutil.ReadAll(resp.Body) var rpcSuccessResponse shared.SuccessResponse if err = self.codec.Decode(reply, &rpcSuccessResponse); err == nil { - self.lastRes = rpcSuccessResponse.Result + self.lastRes = &rpcSuccessResponse self.lastErr = err return nil } else { var rpcErrorResponse shared.ErrorResponse if err = self.codec.Decode(reply, &rpcErrorResponse); err == nil { - self.lastRes = rpcErrorResponse.Error + self.lastRes = &rpcErrorResponse self.lastErr = err return nil } else {