sitemap : can be application/xml or text/xml too
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5627 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -40,7 +40,7 @@ class sitemap
|
|||||||
$type = $finfo->buffer ($content);
|
$type = $finfo->buffer ($content);
|
||||||
if ($type === "text/plain" || $type === "application/x-empty")
|
if ($type === "text/plain" || $type === "application/x-empty")
|
||||||
return $this->analyzeText ($content, $url);
|
return $this->analyzeText ($content, $url);
|
||||||
elseif ($type === "application/xml")
|
elseif ($type === "application/xml" || $type === "text/xml")
|
||||||
return $this->analyzeXML ($content, $url);
|
return $this->analyzeXML ($content, $url);
|
||||||
else
|
else
|
||||||
throw new \Exception ("Type of sitemap '$type' unknown for '$url'", 406);
|
throw new \Exception ("Type of sitemap '$type' unknown for '$url'", 406);
|
||||||
|
|||||||
Reference in New Issue
Block a user