Verified Commit 58caf0f2 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3284133 by mondrake, alexpott: IETF RFC 9239 requires Javascript MIME...

Issue #3284133 by mondrake, alexpott: IETF RFC 9239 requires Javascript MIME type to be text/javascript
parent 6a9f48d0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -152,7 +152,7 @@ class ExtensionMimeTypeGuesser implements MimeTypeGuesserInterface {
      129 => 'application/x-iphone',
      130 => 'application/x-iso9660-image',
      131 => 'application/x-java-jnlp-file',
      132 => 'application/javascript',
      132 => 'text/javascript',
      133 => 'application/x-jmol',
      134 => 'application/x-kchart',
      135 => 'application/x-killustrator',
@@ -860,6 +860,7 @@ class ExtensionMimeTypeGuesser implements MimeTypeGuesserInterface {
      'webm' => 357,
      'vtt' => 358,
      'gz' => 359,
      'mjs' => 132,
      'aac' => 360,
    ],
  ];
+1 −0
Original line number Diff line number Diff line
@@ -1204,6 +1204,7 @@ function file_icon_map($mime_type) {
    case 'application/x-php':
    case 'application/x-ruby':
    case 'application/x-shellscript':
    case 'text/javascript':
    case 'text/vnd.wap.wmlscript':
    case 'text/x-emacs-lisp':
    case 'text/x-haskell':
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ class JsAssetController extends AssetControllerBase {
  /**
   * {@inheritdoc}
   */
  protected string $contentType = 'application/javascript';
  protected string $contentType = 'text/javascript';

  /**
   * {@inheritdoc}