Skip to content

Commit

Permalink
Add .dcm to extension map (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomk9 committed Dec 13, 2022
1 parent aacec32 commit 273d454
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Changed `.js` to `text/javascript` per
https://datatracker.ietf.org/doc/html/rfc9239.
* Added `.mjs` as `text/javascript`.
* Add `application/dicom` mimeType lookup by extension.
* Require Dart 2.18.

# 1.0.3
Expand Down
1 change: 1 addition & 0 deletions lib/src/default_extension_map.dart
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ const Map<String, String> defaultExtensionMap = <String, String>{
'dataless': 'application/vnd.fdsn.seed',
'davmount': 'application/davmount+xml',
'dbk': 'application/docbook+xml',
'dcm': 'application/dicom',
'dcr': 'application/x-director',
'dcurl': 'text/vnd.curl.dcurl',
'dd2': 'application/vnd.oma.dd2+xml',
Expand Down
1 change: 1 addition & 0 deletions test/mime_type_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ void main() {
_expectMimeType('file.dart', 'text/x-dart');
// Test mixed-case
_expectMimeType('file.DaRT', 'text/x-dart');
_expectMimeType('file.dcm', 'application/dicom');
_expectMimeType('file.html', 'text/html');
_expectMimeType('file.xhtml', 'application/xhtml+xml');
_expectMimeType('file.jpeg', 'image/jpeg');
Expand Down

0 comments on commit 273d454

Please sign in to comment.