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

array_pad on list+explode #242

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

array_pad on list+explode #242

wants to merge 1 commit into from

Conversation

bucha
Copy link

@bucha bucha commented Feb 9, 2018

This fixes some edge-cases that we encountered during unit-tests, where the response might not carry a body for example.

Context

What has been done

How to test

Todo

  • [ ]
  • [ ]

Notes

This fixes some edge-cases that we encountered during unit-tests, where the response might not carry a body for example.
list($rawHeader, $rawBody) = explode("\r\n\r\n", $response, 2);

list($rawHeader, $rawBody) = array_pad(explode("\r\n\r\n", $response, 2), 2, '');
Copy link
Contributor

Choose a reason for hiding this comment

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

Accidental indentation?

@MrRio
Copy link
Contributor

MrRio commented Feb 9, 2018

This is missing a unit test and those items from the PR template.

@bucha
Copy link
Author

bucha commented Feb 9, 2018 via email

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