From 24197be9cfa30c13295f9ad3b80b6211cfa9426d Mon Sep 17 00:00:00 2001 From: Timo Janssrn Date: Mon, 30 Jul 2018 15:24:27 +0200 Subject: [PATCH] bugfix headerreader --- src/Wuunder/Http/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {