[BugFix] Python return incorrect MimeType for Js file under Windows 10
For unkown reason, python webserver return MimeType text/plain
for all .js
file when running under Windows 10
Fix
Reference: https://bugs.python.org/issue43975 thansk to Scott Means (smeans)
- Open Registry Editor
- Go to
Computer\HKEY_CLASSES_ROOT\.js
, change Content Type (currentlytext/plain
) toapplication/javascript
- Restart webserver