Mercurial > p > roundup > code
diff roundup/cgi/client.py @ 4291:b1772fdb09d0
Fix traceback on .../msgN/ url...
...this requests the file content and for apache mod_wsgi produced a
traceback because the mime type is None for messages, fixes
issue2550586, thanks to ThomasAH for reporting and to Intevation for
funding the fix.
| author | Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net> |
|---|---|
| date | Mon, 30 Nov 2009 21:55:59 +0000 |
| parents | e24a6ca34448 |
| children | d51a9c498dc4 |
line wrap: on
line diff
--- a/roundup/cgi/client.py Mon Nov 30 21:17:14 2009 +0000 +++ b/roundup/cgi/client.py Mon Nov 30 21:55:59 2009 +0000 @@ -880,6 +880,9 @@ "this file.") mime_type = klass.get(nodeid, 'type') + # Can happen for msg class: + if not mime_type: + mime_type = 'text/plain' # if the mime_type is HTML-ish then make sure we're allowed to serve up # HTML-ish content
