-
- Downloads
[FIX] openerp: force Odoo to serve svg with mimetype image/svg+xml
Odoo serves files based on the mimetype imported with python module Mimetype. In some case, mimetype on windows for svg is undefined or misconfigured and the svg is returned as text/plain (and so xml and not img). This commit overrides the default mimetype to render .svg file with mimetype 'image/svg+xml'. It is similar to add/override the key from windows registry with: ``` [HKEY_CLASSES_ROOT\.svg] @="svgfile" "Content Type"="image/svg+xml" ``` The advantage to override it in Odoo, is to be sure that even if this key has been updated or deleted by a cleaner software or malware, Odoo continue to work This closes odoo/odoo#12150, closes odoo/odoo#9061, closes odoo/odoo#9118
Please register or sign in to comment