From d79f7898309fc75ea5e9f3aad68de8a35d62f079 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Thu, 31 Oct 2019 08:22:14 +0000 Subject: [PATCH] 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 --- sitemap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sitemap.php b/sitemap.php index a81cf1d..6776622 100644 --- a/sitemap.php +++ b/sitemap.php @@ -40,7 +40,7 @@ class sitemap $type = $finfo->buffer ($content); if ($type === "text/plain" || $type === "application/x-empty") return $this->analyzeText ($content, $url); - elseif ($type === "application/xml") + elseif ($type === "application/xml" || $type === "text/xml") return $this->analyzeXML ($content, $url); else throw new \Exception ("Type of sitemap '$type' unknown for '$url'", 406);