mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-10-25 22:20:05 -05:00
Updated mimetype from 'text/javascript' to 'application/javascript' as 'text/javascript' is obsolete. Fixes #6079
This commit is contained in:
1 parent
c4d9ef9210
commit
5f5818ba78
2 files changed
+2
-1
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user