diff --git a/CurlHttpClient.php b/CurlHttpClient.php index e865fe8..719eb93 100644 --- a/CurlHttpClient.php +++ b/CurlHttpClient.php @@ -74,7 +74,7 @@ private function curlParseHeaders($message_headers) { $header_lines = preg_split("/\r\n|\n|\r/", $message_headers); $headers = array(); - list(, $headers['http_status_code'], $headers['http_status_message']) = explode(' ', trim(array_shift($header_lines)), 3); + list(, $headers['http_status_code'], $headers['http_status_message']) = explode(' ', array_shift($header_lines), 3); foreach ($header_lines as $header_line) { list($name, $value) = explode(':', $header_line, 2); $name = strtolower($name);