Skip to content

Commit 4ea81f1

Browse files
committed
rpc/comms: fix bug attaching the console over http
1 parent e2d7c1a commit 4ea81f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rpc/comms/http.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,13 +271,13 @@ func (self *httpClient) Send(req interface{}) error {
271271
reply, _ := ioutil.ReadAll(resp.Body)
272272
var rpcSuccessResponse shared.SuccessResponse
273273
if err = self.codec.Decode(reply, &rpcSuccessResponse); err == nil {
274-
self.lastRes = rpcSuccessResponse.Result
274+
self.lastRes = &rpcSuccessResponse
275275
self.lastErr = err
276276
return nil
277277
} else {
278278
var rpcErrorResponse shared.ErrorResponse
279279
if err = self.codec.Decode(reply, &rpcErrorResponse); err == nil {
280-
self.lastRes = rpcErrorResponse.Error
280+
self.lastRes = &rpcErrorResponse
281281
self.lastErr = err
282282
return nil
283283
} else {

0 commit comments

Comments
 (0)