Right now FileSystem exposes GetFileMimeType(const String& path) requiring a library users to implement it by themselves.
It can cause platform differences between windows (registry), macos (kUTTagClassMIMEType) and linux (if-else).
Since ultralight bundles gio, is it possible to use it instead?
But it returns application/x-ext-js instead of application/javascript for mediaControlsLocalizedStrings.js and similarly for .dat and .pem files.
css is fine though.
Right now
FileSystem
exposesGetFileMimeType(const String& path)
requiring a library users to implement it by themselves. It can cause platform differences between windows (registry), macos (kUTTagClassMIMEType
) and linux (if-else).Since ultralight bundles gio, is it possible to use it instead?
Like in: https://stackoverflow.com/a/21552150/9765252
But it returns
application/x-ext-js
instead ofapplication/javascript
for mediaControlsLocalizedStrings.js and similarly for .dat and .pem files. css is fine though.