Merged in fix/sitemap-fixes (pull request #2280)
fix:sitemap - added null check and correct content-type * fix:sitemap - added null check and correct content-type * Revert test code Approved-by: Erik Tiekstra
This commit is contained in:
@@ -33,6 +33,6 @@ export async function GET() {
|
||||
const sitemapIndexXML = `<?xml version="1.0" encoding="UTF-8"?>\n<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">${urls.join("")}\n</sitemapindex>`
|
||||
|
||||
return new Response(sitemapIndexXML, {
|
||||
headers: { "Content-Type": "text/xml" },
|
||||
headers: { "Content-Type": "application/xml" },
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user