Updated mimetype from 'text/javascript' to 'application/javascript' as 'text/javascript' is obsolete. Fixes #6079
parent
c4d9ef9210
commit
5f5818ba78
|
@ -14,6 +14,7 @@ Housekeeping
|
|||
************
|
||||
|
||||
| `Issue #6052 <https://redmine.postgresql.org/issues/6052>`_ - Added connected pgAdmin user and connection name in the log file.
|
||||
| `Issue #6079 <https://redmine.postgresql.org/issues/6079>`_ - Updated mimetype from 'text/javascript' to 'application/javascript' as 'text/javascript' is obsolete.
|
||||
|
||||
Bug fixes
|
||||
*********
|
||||
|
|
|
@ -48,7 +48,7 @@ from pgadmin.utils.security_headers import SecurityHeaders
|
|||
# affect pgAdmin 4 to be load properly. This will avoid the issues that may
|
||||
# occur due to security fix of X_CONTENT_TYPE_OPTIONS = "nosniff".
|
||||
import mimetypes
|
||||
mimetypes.add_type('text/javascript', '.js')
|
||||
mimetypes.add_type('application/javascript', '.js')
|
||||
mimetypes.add_type('text/css', '.css')
|
||||
|
||||
winreg = None
|
||||
|
|
Loading…
Reference in New Issue