diff --git a/src/webob/static.py b/src/webob/static.py index 35881d38..830897dc 100644 --- a/src/webob/static.py +++ b/src/webob/static.py @@ -9,7 +9,9 @@ 'FileApp', 'DirectoryApp', ] -mimetypes._winreg = None # do not load mimetypes from windows registry +# do not load mimetypes from windows registry +mimetypes._winreg = mimetypes._mimetypes_read_windows_registry = None + mimetypes.add_type('text/javascript', '.js') # stdlib default is application/x-javascript mimetypes.add_type('image/x-icon', '.ico') # not among defaults