From 3c510825b9617bfd2aee8cff80d4551d44e3e194 Mon Sep 17 00:00:00 2001 From: Kamil Kuzminski Date: Mon, 29 Aug 2016 19:15:38 +0200 Subject: [PATCH] Correctly handle response headers parsing --- src/Vimeo/Vimeo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Vimeo/Vimeo.php b/src/Vimeo/Vimeo.php index 9e9f8bf..0739c73 100644 --- a/src/Vimeo/Vimeo.php +++ b/src/Vimeo/Vimeo.php @@ -213,7 +213,7 @@ public static function parse_headers($headers) $http = array_shift($list); foreach ($list as $header) { - $parts = explode(':', $header); + $parts = explode(':', $header, 2); $final_headers[trim($parts[0])] = isset($parts[1]) ? trim($parts[1]) : ''; }