Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] http: force mimetype of .js files to text/javascript
Previously, when the odoo server was running on some Windows installations, it was possible for javascript files loaded directly from the static folder of an addon to fail to run because the Content-Type header was set to text/plain instead of text/javascript. This is because the mimetypes module from the standard library honors the mimetypes from the OS, in the case of Windows it reads a key in the registry, which can be misconfigured to text/plain for .js files. This commit forces the mimetype of .js files to text/javascript to solve this issue. closes #162277 X-original-commit: 9474c99 Signed-off-by: Julien Castiaux (juc) <juc@odoo.com>
- Loading branch information