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);