Thomas Waldmann committed a4db041

fixes mimetypes read from registry issue on windows, thanks to Nick Rioux

  • Participants
  • Parent commits ed265a8

Comments (0)

Files changed (2)

File MoinMoin/util/_tests/

         ('.pdf',             'application/pdf'),
         ('.txt',             'text/plain'),
         ('.jpeg',            'image/jpeg'),
+        ('.png',             'image/png'),
+        ('.svg',             'image/svg+xml'),
         ('',                 'application/octet-stream')

File MoinMoin/util/

 from MoinMoin import config
+# prevents unexpected results on Windows
+# see
  # OpenOffice 2.x & other open document stuff
  '.rst': 'text/x-rst',
  '.flv': 'video/x-flv',
  '.wmv': 'video/x-ms-wmv',
+ '.wma': 'audio/x-ms-wma',
  '.swf': 'application/x-shockwave-flash',
  '.awd': 'application/x-anywikidraw',
  '.twd': 'application/x-twikidraw',
  '.moin': 'text/',
  '.creole': 'text/x.moin.creole',
  '.mediawiki': 'text/x-mediawiki',
+ '.ico': 'image/x-icon',
+ '.svg': 'image/svg+xml'
 # add all mimetype patterns of pygments