good morning!!!!

Skip to content
Snippets Groups Projects
Commit edaea698 authored by Péter Szilágyi's avatar Péter Szilágyi
Browse files

Merge pull request #1777 from hectorchu/develop

rpc/comms: fix bug attaching the console over http
parents 6fe46cc7 4ea81f17
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment