mirror of
https://github.com/FAUSheppy/flask-json-dream-website
synced 2025-12-06 08:11:35 +01:00
change sitemap mime-type to application/xml
This commit is contained in:
@@ -207,7 +207,7 @@ def siteMap():
|
|||||||
childLastmod.text = lastmod.isoformat()
|
childLastmod.text = lastmod.isoformat()
|
||||||
chilLoc.text = url
|
chilLoc.text = url
|
||||||
|
|
||||||
return flask.Response(et.tostring(top, 'utf-8'), mimetype='text/xml')
|
return flask.Response(et.tostring(top, 'utf-8'), mimetype='application/xml')
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user