aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-09-08 16:02:09 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-09-08 16:02:09 +0800
commitedaea698172feecc6130938c8d6197f8653c0a83 (patch)
treee7f062115924e108973684512ef07c6b2daa972b
parent6fe46cc7439cf55135fb8c7cc6e15dfb63ed2365 (diff)
parent4ea81f170a164b611b792d6c0e632d38f8953d64 (diff)
downloadgo-tangerine-edaea698172feecc6130938c8d6197f8653c0a83.tar
go-tangerine-edaea698172feecc6130938c8d6197f8653c0a83.tar.gz
go-tangerine-edaea698172feecc6130938c8d6197f8653c0a83.tar.bz2
go-tangerine-edaea698172feecc6130938c8d6197f8653c0a83.tar.lz
go-tangerine-edaea698172feecc6130938c8d6197f8653c0a83.tar.xz
go-tangerine-edaea698172feecc6130938c8d6197f8653c0a83.tar.zst
go-tangerine-edaea698172feecc6130938c8d6197f8653c0a83.zip
Merge pull request #1777 from hectorchu/develop
rpc/comms: fix bug attaching the console over http
-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 {