)]}'
{
  "commit": "4e8e5639985cce3498bcdf549314ae73f17fc36e",
  "tree": "add20f5c0163a791e6bdffef16ece6c22ade94f3",
  "parents": [
    "e05fe81d2f76778a37fb34a9db9d770b77349f62"
  ],
  "author": {
    "name": "Lasse R.H. Nielsen",
    "email": "lrn@google.com",
    "time": "Mon Apr 07 12:22:47 2025 +0200"
  },
  "committer": {
    "name": "Lasse R.H. Nielsen",
    "email": "lrn@google.com",
    "time": "Mon Apr 07 12:30:29 2025 +0200"
  },
  "message": "[mime] Try to choose default extension based on external source.\n\nProof-of-concept using Android default extensions.\n\nThe Debian and Apache mime.types are not trying to assign a\n*preferred* extension to mime types. They are interpreting\nexisting extensions to guess the content\u0027s media type,\nor passing along existing files with existing extensions,\nnot creating new files with new extensions.\n\nIf there is a good source for the preferred extension\nfor a media type, then we should use that.\n\nThere might be media types that are so wide-spanning\nthat no single extension can cover all of them correctly.\nLike the `application/x-msdownload` media type which\nthe Apache web server associates with `.exe`, `.msi`,\n`.dll`, `.com` and `.bat` (not not `.cmd`).\nThose extensions are not interchangable,\nand using the wrong one would be incorrect.\nSuch a mime type should possibly *not* have a\ndefault/preferred extension.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "293449a0e07232baff3ff27bd11f2d6b9f81a209",
      "old_mode": 33188,
      "old_path": "pkgs/mime/lib/src/extension.dart",
      "new_id": "759d97560dd74c8c8c4a9509620e5fb1c23db3ff",
      "new_mode": 33188,
      "new_path": "pkgs/mime/lib/src/extension.dart"
    }
  ]
}
