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

HttpUtil::parseResponse fails on empty $response #272

Open
kaktus-74 opened this issue Mar 21, 2019 · 0 comments
Open

HttpUtil::parseResponse fails on empty $response #272

kaktus-74 opened this issue Mar 21, 2019 · 0 comments

Comments

@kaktus-74
Copy link

It can happen that $response will be empty string (sometimes on 404 error)

and line
list($rawHeader, $rawBody) = explode("\r\n\r\n", $response, 2);
will throw an exception
ErrorException: Undefined offset: 1 in \vendor\php-vcr\php-vcr\src\VCR\Util\HttpUtil.php on line 70

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

No branches or pull requests

1 participant