jsonrpclib icon indicating copy to clipboard operation
jsonrpclib copied to clipboard

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

Open zj8487 opened this issue 8 years ago • 1 comments

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

relative issue https://github.com/powerman/rpc-codec/issues/7

zj8487 avatar May 27 '16 13:05 zj8487

Yes! Look at this line in jsonrpc.py:

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

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

helmot avatar Oct 02 '17 03:10 helmot