Skip to content

Alter mime type #1599

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 28, 2019
Merged

Alter mime type #1599

merged 2 commits into from
Mar 28, 2019

Conversation

Martii
Copy link
Member

@Martii Martii commented Mar 28, 2019

See individual commits for summary

Martii added 2 commits March 28, 2019 13:09
* Apparently some current browsers only push/sniff this now. Nothing like not following standards \*eyeroll\*
* Older browsers still push/sniff `application/` and should retain some compatibility regardless of the state of the browsers interpretation of IANA
* Converting to a switch casing... this is likely to be argued about forever... so make it prettier than `if..else` for change tracking

Refs:
* https://tools.ietf.org/html/rfc4329#page-9  *(IANA ... note the obsolete for `text\javascript`)*
* https://developer.mozilla.org/docs/Web/HTTP/Basics_of_HTTP/MIME_types#JavaScript_types  *(Note the contradiction)*
* https://openuserjs.org/discuss/Selected_file_is_not_JavaScript. *(Report)*

Applies to OpenUserJS#872
* Since this was removed with the TLSv1 EOL

Applies to OpenUserJS#1599 OpenUserJS#1430
@Martii Martii added bug You've guessed it... this means a bug is reported. CODE Some other Code related issue and it should clearly describe what it is affecting in a comment. browser issue Surprise! It's a browser issue. labels Mar 28, 2019
@Martii Martii merged commit 4523d02 into OpenUserJS:master Mar 28, 2019
@Martii Martii deleted the alterMIMEtype branch March 28, 2019 19:15
Martii added a commit to Martii/OpenUserJS.org that referenced this pull request Aug 21, 2019
* *async*@3.x migration
* Using a more applicable statusCodePage for DB S3 connection issue... the error message is still rather vague since it's abstracted several times between function calls but was tested and landed on 404 during *fakeS3* usage. At some point when all callback signatures can be set to `aErr`, `aResults` this should be more explicit... until then preserving existing vagueness.
* Revert OpenUserJS#1599 as Fx still uses this in 68.x. TLSv1 EOL will still prevent Opera Presto from even visiting the site.

NOTES:
* Apparently version 3.x migration is extremely picky now about how Err is generated. i.e. it doesn't allow `true`/`false` anymore like it did in version 2.x. This causes the request to never complete with `async.parallel`. The web spinner and no source is retrieved even though **it was successfully retrieved**.
* Been probing/testing dev manually and it seems to be non-sluggish atm with Fx 68.x... perhaps a change from 3.0 to 3.1 of this dep... or even Chromium report since distro version is/was a bit buggy at the time of testing.

Post OpenUserJS#1607 OpenUserJS#1520
Martii added a commit that referenced this pull request Aug 21, 2019
* *async*@3.x migration
* Using a more applicable statusCodePage for DB S3 connection issue... the error message is still rather vague since it's abstracted several times between function calls but was tested and landed on 404 during *fakeS3* usage. At some point when all callback signatures can be set to `aErr`, `aResults` this should be more explicit... until then preserving existing vagueness.
* Revert #1599 as Fx still uses this in 68.x. TLSv1 EOL will still prevent Opera Presto from even visiting the site.

NOTES:
* Apparently version 3.x migration is extremely picky now about how Err is generated. i.e. it doesn't allow `true`/`false` anymore like it did in version 2.x. This causes the request to never complete with `async.parallel`. The web spinner and no source is retrieved even though **it was successfully retrieved**.
* Been probing/testing dev manually and it seems to be non-sluggish atm with Fx 68.x... perhaps a change from 3.0 to 3.1 of this dep... or even Chromium report since distro version is/was a bit buggy at the time of testing.

Post #1607 #1520

Auto-merge
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
browser issue Surprise! It's a browser issue. bug You've guessed it... this means a bug is reported. CODE Some other Code related issue and it should clearly describe what it is affecting in a comment.
Development

Successfully merging this pull request may close these issues.

1 participant