aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorHector Chu <hectorchu@gmail.com>2015-09-07 22:09:59 +0800
committerHector Chu <hectorchu@gmail.com>2015-09-07 22:09:59 +0800
commit4ea81f170a164b611b792d6c0e632d38f8953d64 (patch)
treeafa51fee0351d8de8c18fbcf92f36917d896649a /rpc
parente2d7c1a52303ebdd8c2956badad5e600bf93ff33 (diff)
downloadgo-tangerine-4ea81f170a164b611b792d6c0e632d38f8953d64.tar.gz
go-tangerine-4ea81f170a164b611b792d6c0e632d38f8953d64.tar.zst
go-tangerine-4ea81f170a164b611b792d6c0e632d38f8953d64.zip
rpc/comms: fix bug attaching the console over http
Diffstat (limited to 'rpc')
-rw-r--r--rpc/comms/http.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpc/comms/http.go b/rpc/comms/http.go
index c165aa27e..f4a930d0e 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 {