Skip to content

Fixes binary response error in tests #314

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

Merged
merged 1 commit into from
Aug 28, 2020

Conversation

janvernieuwe
Copy link
Contributor

You could get this as body in the tests:
image

This fixes that, so that valid xml is returned instead.

@janvernieuwe janvernieuwe added this to the 1.3.1 milestone Aug 28, 2020
@janvernieuwe janvernieuwe requested a review from veewee August 28, 2020 08:59
@@ -36,7 +36,7 @@ public function convert(
);

$requestHeaders = trim($requestParts[0] ?? '');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still the best way to fetch the formatter headers?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked into it, the getHeaders returns it as an array of ['header-name' => ['value1', 'value2']]
That might not be optimal, and the current solution seems to be working fine for now.

@janvernieuwe janvernieuwe merged commit 9b48497 into phpro:master Aug 28, 2020
@janvernieuwe janvernieuwe deleted the binary-response-fix branch August 28, 2020 09:38
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.

None yet

2 participants