diff --git a/news/4663.bugfix b/news/4663.bugfix new file mode 100644 index 0000000000..708a1987dc --- /dev/null +++ b/news/4663.bugfix @@ -0,0 +1 @@ +fix sitemap.xml.gz not is not compressed @dobri1408 diff --git a/src/express-middleware/sitemap.js b/src/express-middleware/sitemap.js index 6525b540af..f593219456 100644 --- a/src/express-middleware/sitemap.js +++ b/src/express-middleware/sitemap.js @@ -5,7 +5,6 @@ export const sitemap = function (req, res, next) { generateSitemap(req).then((sitemap) => { if (Buffer.isBuffer(sitemap)) { res.set('Content-Type', 'application/x-gzip'); - res.set('Content-Encoding', 'gzip'); res.set('Content-Disposition', 'attachment; filename="sitemap.xml.gz"'); res.send(sitemap); } else {