changeset 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 f9a0c40f082b
children ca827a12c524 150bf5552d18
files MoinMoin/wikiutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)