Open lookyman opened 10 years ago
As i am not a christian i still believe in 1 god things are happening around and not just in one place some people stealing from companies some from government most are stealing family n their lives trying to hide those who really are sick and using black magic... demand to stop hiding using detours on flights and driving
When trying to create a hook:
Github responds with "Problems parsing JSON". The problem appears to be here. It properly encodes values as JSON, but leaves the whole array as array. So when it is pased to CURL, it encodes it again, and messes up (doble escapes) the values.
EDIT: Just to clarify, when that line is replaced by simple
$this->post = Json::encode($post);
, it works, for this example. Not sure why the whole logic about UrlScript or CURLFile is there though. Probably for a reason, so it's probably not a good solution.EDIT2: Now that I look at it, when you pass the encoded JSON string as a post parameter, it works fine. Which is probably how you're supposed to use it. Oh well, it was late last night when I wrote this :) Anyway, the issue is still relevant, because the behaviour I described is certainly not what I expected. But maybe just a clarifying docs would do the trick?...