Issue with SVG file and tracd standalone daemon
|Reported by:||Emmanuel Blot||Owned by:||Emmanuel Blot|
When Trac is run with the
tracd standalone daemon and the GraphvizPlugin outputs SVG data my browser only offers to save the file, rather than displaying the SVG graphics as an embedded image.
Using the LiveHttpHeaders extension for Firefox, it appears that
tracd sends the SVG graphic as
application/octet-stream content type, which is not a valid MIME type for SVG data.
Trac only relies on the Python
mimetypes library to detect the MIME type of a file, whereas Trac implements a more powerful MIME type recognition scheme in
I'm not sure whether the attached patch is valid, but it makes
tracd to serve and identify properly the SVG files and eventually allows the GraphvizPlugin to work with the standalone
Change History (11)
follow-up: 5 comment:4 by , 15 years ago
|Status:||assigned → closed|