MIME type of .js file: text/plain
When uploading a javascript file with .js extension, it gets uploaded with mime type "text/plain".
This leads to problems because browsers reject .js files with the wrong mime type if the HTTP header x-content-type-options: nosniff is set.
I doubt that the magic file database will ever correctly detect the mime type of a javascript file, because there are no stable markers it could use. This driver here should cater for that problem, and manually fix the type.
Related to #84.
MinIO automatically adds this header now: https://github.com/minio/minio/pull/12256
Hi @cweiske We merged https://github.com/andersundsehr/aus_driver_amazon_s3/pull/141 which should solve this issue