This repository has been archived by the owner on Apr 9, 2023. It is now read-only.
A Crucial issue reported from reddit about cURL client of this package #4
Labels
bug
Something isn't working
Skimming it, at least for cURL, if the first supplied header isn't "Content-Type" => "application/json" then it won't json_encode() during POST.
And it won't ever do it for PUTs.
And might have a problem with empty data arrays that should become an empty Dict rather than List (e.g. instead wants the output of json_encode( (object) NULL )).
Also it might be desired to be able to json_encode( ..., JSON_UNESCAPED_SLASHES ).
P.S. sometimes fields want to be rawurlencode()'d, I have a note for this for Discord webhooks.
by Daneel_Trevize(in Reddit)
The text was updated successfully, but these errors were encountered: