Commits

Robert Brewer committed f53b5dc

Fix for #458 (auto-init mimetypes module). Knownfiles only works on Unix.

  • Participants
  • Parent commits 42b3553

Comments (0)

Files changed (1)

File cherrypy/lib/cptools.py

 import inspect
 import mimetools
 import mimetypes
+mimetypes.init()
 mimetypes.types_map['.dwg']='image/x-dwg'
 mimetypes.types_map['.ico']='image/x-icon'