Ticket #27 (new enhancement)

Opened 2 years ago

Last modified 4 months ago

jsonpc: Content-Type should be application/json

Reported by: guest Assigned to: Jan-Klaas Kollhof
Priority: low Milestone:
Component: other Version: 2.0
Severity: normal Keywords: jsonrpc
Cc:

Description

According to last specification of JSON-RPC (http://json-rpc.org/wd/JSON-RPC-1-1-WD-20060807.html), Content-Type of POST request to server should be application/json.

Attachments

JsonRpc-UseProperMimeAndPerformanceImprovement.patch (4.6 kB) - added by heldermagalhaes on 04/18/08 11:40:16.
fixes issue and add up a performance boost by removing unneeded whitespace

Change History

04/18/08 11:40:16 changed by heldermagalhaes

  • attachment JsonRpc-UseProperMimeAndPerformanceImprovement.patch added.

fixes issue and add up a performance boost by removing unneeded whitespace

04/18/08 11:46:55 changed by heldermagalhaes

  • priority changed from normal to low.

Although the attachment works as expected, it should be used with some caution: some older web server and/or browsers may fail interpreting the JSON MIME type, which is still in acceptance phase. Changing priority to low as current state seems to work with most browser implementations - please feel free to comment on this! ;-)

Performance improvements are relevant, though, as whitespace is (usually) not optimized in client<->server communication and therefore leads to a high overhead/waste (about 30-40% depending on data contents). Should the performance improvements be included in a different ticket (probably as an enhancement to URL Lib)?