Skip to content

Conversation

m1ch0pv
Copy link

@m1ch0pv m1ch0pv commented Nov 13, 2018

If configuration value only_encode_binary is true, response body will be encoded only if response is binary.

Reason: I was trying to upgrade the version of "akamai-open/edgegrid-client" in https://github.com/akamai/NetStorageKit-PHP, but when I do composer update, tests stop working, it looks like guzzlehttp-vcr expects response bodies to be base64 encoded and those from NetStorageKit-PHP are not. I could just encode all those response contents, but from what I could understand from https://github.com/php-vcr/php-vcr, only binary responses are base 64 encoded. So I think it would be good if we can turn off the encoding for non-binary content here.

If configuration value `only_encode_binary` is on, body will be encoded only if response is binary
@m1ch0pv
Copy link
Author

m1ch0pv commented Nov 13, 2018

I can create tests for this specific feature before PR merge if this proposal gets approved. Thanks.

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