You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not a security-related bug/issue. If it is, please follow please follow the security policy.
This is not a question or a support request. If you have any lotus related questions, please ask in the lotus forum.
This is not a new feature request. If it is, please file a feature request instead.
This is not an enhancement request. If it is, please file a improvement suggestion instead.
I have searched on the issue tracker and the lotus forum, and there is no existing related issue or discussion.
I am running the Latest release, or the most recent RC(release canadiate) for the upcoming release or the dev branch(master), or have an issue updating to any of these.
I did not make any code changes to lotus.
Lotus component
lotus daemon - chain sync
lotus miner - mining and block production
lotus miner/worker - sealing
lotus miner - proving(WindowPoSt)
lotus miner/market - storage deal
lotus miner/market - retrieval deal
lotus miner/market - data transfer
lotus client
lotus JSON-RPC API
lotus message management (mpool)
Other
Lotus Version
Daemon: 1.11.1+mainnet+git.15d90c2+api1.3.0
Local: lotus version 1.11.1+mainnet+git.15d90c2
Describe the Bug
Minor point that does not affect functionality, but it seems that the client is returning an incorrect Content-Type header. The body of the response is correct, but the response header is wrong.
Currently it is returning:
Content-Type: text/plain
For the api, it is more correct to return
Content-Type: application/json
For the most part, the bug is not affecting the usage of the API. There are some http clients that may have trouble with auto-negotiating the content type for deserialization.
Logging Information
n/a
Repo Steps
Run the node with the RPC enabled
Query any JSONRPC method
See that the response header Content-Type is text/plain
The text was updated successfully, but these errors were encountered:
Checklist
Latest release
, or the most recent RC(release canadiate) for the upcoming release or the dev branch(master), or have an issue updating to any of these.Lotus component
Lotus Version
Describe the Bug
Minor point that does not affect functionality, but it seems that the client is returning an incorrect
Content-Type
header. The body of the response is correct, but the response header is wrong.Currently it is returning:
For the api, it is more correct to return
For the most part, the bug is not affecting the usage of the API. There are some http clients that may have trouble with auto-negotiating the content type for deserialization.
Logging Information
Repo Steps
Content-Type
istext/plain
The text was updated successfully, but these errors were encountered: