Skip to content
Snippets Groups Projects
Commit 026c3d0f authored by Jeremy Kersten's avatar Jeremy Kersten
Browse files

[FIX] base: add get_extension helper


Since PR #90855, we add extension if mimetypes doesn't match the type.
Since guess_type don't know some extension, we prefer considere all string
of less of 8 char as an extension before to fallback on the mimetypes lib.

With this commit, a filename filename.scss will be considered with an
extension .scss by our own helper instead of a fallback on .bin or .a as
returned by guess_extension of mimetype.

closes odoo/odoo#91581

Signed-off-by: default avatarJulien Castiaux <juc@odoo.com>
parent 5e8889f7
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment