diff options
| author | Jeremy Kersten <jke@odoo.com> | 2016-05-31 11:58:24 +0200 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2016-05-31 14:14:30 +0200 |
| commit | f413d155df1c8f8fc15877fb6d9f737472291ae3 (patch) | |
| tree | 82fbb380f6f98144a53a67985d5fbd6a300c7f80 /addons/website/static/lib/jquery.mjs.nestedSortable | |
| parent | fe511f18e165e0e49c552a15b0e6a28308e31a51 (diff) | |
[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
Diffstat (limited to 'addons/website/static/lib/jquery.mjs.nestedSortable')
0 files changed, 0 insertions, 0 deletions
