diff options
author | vitiko98 <[email protected]> | 2022-07-04 01:18:20 -0400 |
---|---|---|
committer | vitiko98 <[email protected]> | 2022-07-04 01:18:20 -0400 |
commit | be93a92a355001960d38c05e2bb737156828119d (patch) | |
tree | adddbba48f4f93049e56556383648cdc3d9da109 | |
parent | a748903dc4d8c73e30e4b642aae5534a09571477 (diff) | |
download | bazarr-be93a92a355001960d38c05e2bb737156828119d.tar.gz bazarr-be93a92a355001960d38c05e2bb737156828119d.zip |
no log: add mimetypes on runtime
-rw-r--r-- | bazarr/app/ui.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bazarr/app/ui.py b/bazarr/app/ui.py index 444869c6f..7551ab115 100644 --- a/bazarr/app/ui.py +++ b/bazarr/app/ui.py @@ -2,6 +2,7 @@ import os import requests +import mimetypes from flask import request, abort, render_template, Response, session, send_file, stream_with_context, Blueprint from functools import wraps @@ -30,6 +31,14 @@ static_bp = Blueprint('images', __name__, ui_bp.register_blueprint(static_bp) +mimetypes.add_type('application/javascript', '.js') +mimetypes.add_type('text/css', '.css') +mimetypes.add_type('font/woff2', '.woff2') +mimetypes.add_type('image/svg+xml', '.svg') +mimetypes.add_type('image/png', '.png') +mimetypes.add_type('image/x-icon', '.ico') + + def check_login(actual_method): @wraps(actual_method) def wrapper(*args, **kwargs): |