diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-02-11 18:56:29 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-02-11 18:56:29 +0800 |
commit | d613bf69bf3fd0cfbe28a2f68c87421f7d5bccf9 (patch) | |
tree | e7d6589314ec1490c45adb2ac5b94423a250eb06 /rpc/http | |
parent | cfddb7f3cd3b8cecb1e59412ce4db5769f6c8007 (diff) | |
download | dexon-d613bf69bf3fd0cfbe28a2f68c87421f7d5bccf9.tar dexon-d613bf69bf3fd0cfbe28a2f68c87421f7d5bccf9.tar.gz dexon-d613bf69bf3fd0cfbe28a2f68c87421f7d5bccf9.tar.bz2 dexon-d613bf69bf3fd0cfbe28a2f68c87421f7d5bccf9.tar.lz dexon-d613bf69bf3fd0cfbe28a2f68c87421f7d5bccf9.tar.xz dexon-d613bf69bf3fd0cfbe28a2f68c87421f7d5bccf9.tar.zst dexon-d613bf69bf3fd0cfbe28a2f68c87421f7d5bccf9.zip |
#295 Allow RPC ID to be string
Diffstat (limited to 'rpc/http')
-rw-r--r-- | rpc/http/server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/http/server.go b/rpc/http/server.go index a34400a77..10c8fa813 100644 --- a/rpc/http/server.go +++ b/rpc/http/server.go @@ -102,7 +102,7 @@ func (s *RpcHttpServer) apiHandler(api *rpc.EthereumApi) http.Handler { if reserr != nil { rpchttplogger.Warnln(reserr) jsonerr := &rpc.RpcErrorObject{-32603, reserr.Error()} - JSON.Send(w, &rpc.RpcErrorResponse{JsonRpc: jsonrpcver, ID: &reqParsed.ID, Error: jsonerr}) + JSON.Send(w, &rpc.RpcErrorResponse{JsonRpc: jsonrpcver, ID: reqParsed.ID, Error: jsonerr}) return } |