diff --git a/src/Wuunder/Http/Request.php b/src/Wuunder/Http/Request.php index 2be903d..b6f1d64 100644 --- a/src/Wuunder/Http/Request.php +++ b/src/Wuunder/Http/Request.php @@ -48,7 +48,7 @@ public function getResponseHeaders() $header_text = substr($this->result, 0, $this->headerSize); foreach (explode("\r\n", $header_text) as $i => $line) - if (count($line) > 4 && substr($line, 0, 4) === "HTTP") + if (strlen($line) > 4 && substr($line, 0, 4) === "HTTP") $headers['http_code'] = $line; else {