aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/http/server.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-02-11 18:59:51 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-02-11 18:59:51 +0800
commitef6c7bd726f78e4134d207b58f1efe504bbad40e (patch)
treee7d6589314ec1490c45adb2ac5b94423a250eb06 /rpc/http/server.go
parentc6af5f0a275608ea6c797ef826e6090885f24eac (diff)
parentd613bf69bf3fd0cfbe28a2f68c87421f7d5bccf9 (diff)
downloadgo-tangerine-ef6c7bd726f78e4134d207b58f1efe504bbad40e.tar
go-tangerine-ef6c7bd726f78e4134d207b58f1efe504bbad40e.tar.gz
go-tangerine-ef6c7bd726f78e4134d207b58f1efe504bbad40e.tar.bz2
go-tangerine-ef6c7bd726f78e4134d207b58f1efe504bbad40e.tar.lz
go-tangerine-ef6c7bd726f78e4134d207b58f1efe504bbad40e.tar.xz
go-tangerine-ef6c7bd726f78e4134d207b58f1efe504bbad40e.tar.zst
go-tangerine-ef6c7bd726f78e4134d207b58f1efe504bbad40e.zip
Merge pull request #300 from tgerring/jsonrpc
Allow RPC ID to be string or null
Diffstat (limited to 'rpc/http/server.go')
-rw-r--r--rpc/http/server.go2
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
}