private static function parseHeaderLine(&$headers, $line) { $parts = explode(':', $line, 2); if (count($parts) == 1) { return; } list($name, $value) = $parts; $headers[trim($name)] = trim($value); }