foglcz / JSONRpc2

Generic JSON-RPC v2 implementation
Other
19 stars 10 forks source link

Move weird JSON decode handling before processing of RPC version. #12

Closed hobrasoft-cz closed 8 years ago

hobrasoft-cz commented 8 years ago

Doing json_decode on $input is quite useless on the original place, because next step is get_request_version(), where is supposed to call it with structured data parsed from JSON string. So I moved it to before this call.

scottchiefbaker commented 8 years ago

Good catch!

hobrasoft-cz commented 8 years ago

Thank you for fast merge, it took me few hours to resolve this.