[Repoze-checkins] r1157 - repoze.debug/trunk/repoze/debug
Paul Everitt
paul at agendaless.com
Sat Jun 28 10:36:55 EDT 2008
Author: Paul Everitt <paul at agendaless.com>
Date: Sat Jun 28 10:36:54 2008
New Revision: 1157
Log:
Python doesn't know what the .xul mimetype should be
Modified:
repoze.debug/trunk/repoze/debug/ui.py
Modified: repoze.debug/trunk/repoze/debug/ui.py
==============================================================================
--- repoze.debug/trunk/repoze/debug/ui.py (original)
+++ repoze.debug/trunk/repoze/debug/ui.py Sat Jun 28 10:36:54 2008
@@ -15,7 +15,8 @@
def get_mimetype(filename):
type, encoding = mimetypes.guess_type(filename)
- # We'll ignore encoding, even though we shouldn't really
+ if type is None and filename.endswith(".xul"):
+ return 'application/vnd.mozilla.xul+xml'
return type or 'application/octet-stream'
More information about the Repoze-checkins
mailing list