Skip to content
New issue

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

The 'Content type' of response should be application/json #56

Open
zj8487 opened this issue May 27, 2016 · 1 comment
Open

The 'Content type' of response should be application/json #56

zj8487 opened this issue May 27, 2016 · 1 comment

Comments

@zj8487
Copy link

zj8487 commented May 27, 2016

Hi accordingt to the Starndard, the "Content-Type: MUST be application/json.".

relative issue
powerman/rpc-codec#7

@zj8487 zj8487 changed the title The response should be application/json The 'Content type' of response should be application/json May 27, 2016
@helmot
Copy link

helmot commented Oct 2, 2017

Yes!
Look at this line in jsonrpc.py:

connection.putheader("Content-Type", "application/json-rpc")

It should be "application/json" not "application/json-rpc"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants