diff MoinMoin/wikiutil.py @ 773:bc1e460db2c8

fix bug in MimeType class
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 09 Jun 2006 21:56:00 +0200
parents b17cce67bcad
children 150bf5552d18
line wrap: on
line diff
--- a/MoinMoin/wikiutil.py	Fri Jun 09 21:55:25 2006 +0200
+++ b/MoinMoin/wikiutil.py	Fri Jun 09 21:56:00 2006 +0200
@@ -788,7 +788,7 @@
     
     def parse_filename(self, filename):
         import mimetypes
-        mtype, encoding = mimetypes.guess_type()
+        mtype, encoding = mimetypes.guess_type(filename)
         if mtype is None:
             mtype = 'application/octet-stream'
         self.parse_mimetype(mtype)