We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug RPC call returns wrong Content-Type header in response
To Reproduce Steps to reproduce the behavior:
Expected behavior Content-Type: application/json; charset=utf-8
Screenshots
curl -v -X POST 'http://lotus:1234/rpc/v0' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"jsonrpc": "2.0","method": "Filecoin.WalletBalance", "params": ["t1jdlfl73voaiblrvn2yfivvn5ifucwwv5f26nfza"],"id": 0}'
POST /rpc/v0 HTTP/1.1 User-Agent: curl/7.30.0 Host: 172.17.0.2:1234 Content-Type: application/json Accept: application/json Content-Length: 117
Version (run lotus --version): 0.3.0'+git9a0d0511'+api0.3.0
lotus --version
Additional context
The text was updated successfully, but these errors were encountered:
this seems like a bug in the rpc library. we should fix it.
Sorry, something went wrong.
should probably be transfer to go-jsonrpc repo
No branches or pull requests
Describe the bug
RPC call returns wrong Content-Type header in response
To Reproduce
Steps to reproduce the behavior:
"params": ["t1jdlfl73voaiblrvn2yfivvn5ifucwwv5f26nfza"],"id": 0}'
Expected behavior
Content-Type: application/json; charset=utf-8
Screenshots
curl -v -X POST 'http://lotus:1234/rpc/v0' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"jsonrpc": "2.0","method": "Filecoin.WalletBalance",
"params": ["t1jdlfl73voaiblrvn2yfivvn5ifucwwv5f26nfza"],"id": 0}'
< HTTP/1.1 200 OK
< Date: Tue, 19 May 2020 15:00:26 GMT
< Content-Length: 38
< Content-Type: text/plain; charset=utf-8
<
{"jsonrpc":"2.0","result":"0","id":0}
Version (run
lotus --version
):0.3.0'+git9a0d0511'+api0.3.0
Additional context
The text was updated successfully, but these errors were encountered: