Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
4ea81f17
Commit
4ea81f17
authored
9 years ago
by
Hector Chu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpc/comms: fix bug attaching the console over http
parent
e2d7c1a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
http.go
rpc/comms/http.go
+2
-2
No files found.
rpc/comms/http.go
View file @
4ea81f17
...
...
@@ -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
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment