-
Notifications
You must be signed in to change notification settings - Fork 451
Add documentation about the expected behavior of encoding type #382
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
Conversation
|
Description looks good. Do we also want to include some documentation saying that input strings must be UTF-8 encoded? |
|
Good idea! I added in a note and the wrapper around json_encode to throw errors when we receive content that isn't correctly encoded. |
|
LGTM |
src/RequestBuilder.php
Outdated
| $uri, | ||
| ['Content-Type' => 'application/json'], | ||
| $body ? json_encode($body) : null | ||
| $body ? GuzzleHttp\json_encode($body) : null |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
7b9cb80 to
0d17761
Compare
jdpedrie
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM once CI finishes. :)
/cc @michaelbausor