changeset 5629:32a0bf3c4e43

fix Content-Type header (mimetype) for rss_rc and sisterpages actions
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 13 Mar 2010 22:26:20 +0100
parents 9fbcd746f135
children d00cc36e37b9
files MoinMoin/action/rss_rc.py MoinMoin/action/sisterpages.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/rss_rc.py	Fri Mar 12 13:52:00 2010 +0100
+++ b/MoinMoin/action/rss_rc.py	Sat Mar 13 22:26:20 2010 +0100
@@ -99,7 +99,7 @@
         # defined for suggested cache lifetime of the RecentChanges RSS doc
         expires = time.time() + cfg.rss_cache
 
-        request.mime_type = 'text/xml'
+        request.mimetype = 'application/rss+xml'
         request.expires = expires
         request.last_modified = lastmod
         request.headers['Etag'] = etag
--- a/MoinMoin/action/sisterpages.py	Fri Mar 12 13:52:00 2010 +0100
+++ b/MoinMoin/action/sisterpages.py	Sat Mar 13 22:26:20 2010 +0100
@@ -45,7 +45,7 @@
         # generate an Expires header, using 1d cache lifetime of sisterpages list
         expires = time.time() + 24*3600
 
-        request.mime_type = 'text/plain'
+        request.mimetype = 'text/plain'
         request.expires = expires
         request.last_modified = timestamp
         request.headers['Etag'] = etag