Skip to content

Conversation

@dwsupplee
Copy link
Contributor

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 6, 2017
@jdpedrie jdpedrie mentioned this pull request Mar 8, 2017
@michaelbausor
Copy link
Contributor

Description looks good. Do we also want to include some documentation saying that input strings must be UTF-8 encoded?

@dwsupplee
Copy link
Contributor Author

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.

@michaelbausor
Copy link
Contributor

LGTM

$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.

This comment was marked as spam.

This comment was marked as spam.

@dwsupplee dwsupplee force-pushed the encoding-type-docs branch from 7b9cb80 to 0d17761 Compare March 8, 2017 20:44
Copy link
Contributor

@jdpedrie jdpedrie left a 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. :)

@dwsupplee dwsupplee merged commit 9b3866a into googleapis:master Mar 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants