X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=src%2FHelper%2FHttp.php;h=03a1ab6d1b5f6a721562c9bc7c89871ff4a4cd0e;hb=ac735cf96eb914759f7e7595630857254b599783;hp=2faf58333f614c62b28f3425a193fdf09c9b0886;hpb=509dee39962ec712884f1c6658f383c4db793785;p=plcapi.git diff --git a/src/Helper/Http.php b/src/Helper/Http.php index 2faf583..03a1ab6 100644 --- a/src/Helper/Http.php +++ b/src/Helper/Http.php @@ -133,7 +133,7 @@ class Http } // be tolerant to line endings, and extra empty lines $ar = preg_split("/\r?\n/", trim(substr($data, 0, $pos))); - while (list(, $line) = @each($ar)) { + foreach($ar as $line) { // take care of multi-line headers and cookies $arr = explode(':', $line, 2); if (count($arr) > 1) {