CurlResult Tests

This commit is contained in:
Philipp Holzer 2018-10-11 21:19:38 +02:00
parent 71a60c5f66
commit 00bf0c24b6
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
4 changed files with 241 additions and 1 deletions

View file

@ -119,7 +119,7 @@ class CurlResult
$header = '';
$base = $result;
while (preg_match('/^HTTP\/[1-2].+? [1-5][0-9][0-9]/', $base)) {
while (preg_match('/^HTTP\/[1-2].+?[1-5][0-9][0-9]/', $base)) {
$chunk = substr($base, 0, strpos($base, "\r\n\r\n") + 4);
$header .= $chunk;
$base = substr($base, strlen($chunk));