Commits

Robert Brewer committed ad73b40

Fix for serveFile if the extension is uppercase (like "picture.JPG").

  • Participants
  • Parent commits 8f24c02

Comments (0)

Files changed (1)

File cherrypy/lib/cptools.py

         ext = ""
         i = path.rfind('.')
         if i != -1:
-            ext = path[i:]
+            ext = path[i:].lower()
         contentType = mimetypes.types_map.get(ext, "text/plain")
     response.headers['Content-Type'] = contentType