Skip to content
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

Open
alimranahmed opened this issue May 26, 2019 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@alimranahmed
Copy link
Owner

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)

@alimranahmed alimranahmed self-assigned this May 30, 2019
@alimranahmed alimranahmed added the bug Something isn't working label Jan 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant