Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ability to pass raw data to post, get, put and delete so we can encode data as we want #315

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

HugoDiag
Copy link

Hello,

As mentioned in this #300, we cannot send utf8 encoded emojis in HTML-Part and Text-Part.

This MR handle that, by not using the json option of Guzzle if the content is not an array. This is not a BC Break because array are still working as it is.
I allow passing data as body or json, so it feel more relevant when calling methods with array|json vs string.

Also, i added the possibility to change content-type in each calls, still having application/json by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant