changeset 5762:b1b82826f8b8

add some image mimetypes to MIMETYPES_MORE to fix windows issues
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Thu, 20 Jan 2011 13:34:33 +0100
parents 2955339b8b03
children 97208f67798f
files MoinMoin/wikiutil.py
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/wikiutil.py	Thu Jan 06 13:22:30 2011 +0100
+++ b/MoinMoin/wikiutil.py	Thu Jan 20 13:34:33 2011 +0100
@@ -873,6 +873,13 @@
  '.swf': 'application/x-shockwave-flash',
  '.moin': 'text/moin-wiki',
  '.creole': 'text/creole',
+ # Windows Server 2003 / Python 2.7 has no or strange entries for these:
+ '.svg': 'image/svg+xml',
+ '.svgz': 'image/svg+xml',
+ '.png': 'image/png',
+ '.jpg': 'image/jpeg',
+ '.jpeg': 'image/jpeg',
+ '.gif': 'image/gif',
 }
 
 # add all mimetype patterns of pygments