Open indigo-jay opened 1 year ago
The method to return a static file in this plugin seems to have generated some confusion. Suggestions:
indigo.utils.return_static_file
handle_static_file_request
indigo.utils.FILE_EXTENSION_MIME_MAP
mimetypes.guess_type
The method to return a static file in this plugin seems to have generated some confusion. Suggestions:
indigo.utils.return_static_file
(handle_static_file_request
shows this by delivering a custom 404 html file)handle_static_file_request
shows this)indigo.utils.FILE_EXTENSION_MIME_MAP
lookup to usemimetypes.guess_type
instead since that is now built-in (at least with Python 3.10).