Skip to content

Commit d2a8c2b

Browse files
authored
feat: Add mimetype aliases/mapping for .toml and .ovpn (#41431)
1 parent 91bdeda commit d2a8c2b

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

changelog/unreleased/41431

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Enhancement: Add mimetype aliases/mapping for .toml and .ovpn
2+
3+
Mimetype aliases and mapping for .toml and .ovpn files got added.
4+
5+
https://github.com/owncloud/core/pull/41431

resources/config/mimetypealiases.dist.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"application/octet-stream": "file",
1616
"application/postscript": "image",
1717
"application/rss+xml": "application/xml",
18+
"application/toml": "text/code",
1819
"application/vnd.android.package-archive": "package/x-generic",
1920
"application/vnd.lotus-wordpro": "x-office/document",
2021
"application/vnd.ms-excel": "x-office/spreadsheet",
@@ -59,6 +60,7 @@
5960
"application/x-font": "image",
6061
"application/x-gimp": "image",
6162
"application/x-gzip": "package/x-generic",
63+
"application/x-openvpn-profile": "text",
6264
"application/x-perl": "text/code",
6365
"application/x-photoshop": "image",
6466
"application/x-php": "text/code",

resources/config/mimetypemapping.dist.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116
"opus": ["audio/ogg"],
117117
"orf": ["image/x-dcraw"],
118118
"otf": ["application/font-sfnt"],
119+
"ovpn": ["application/x-openvpn-profile", "text/plain"],
119120
"pages": ["application/x-iwork-pages-sffpages"],
120121
"pdf": ["application/pdf"],
121122
"pfb": ["application/x-font"],
@@ -162,6 +163,7 @@
162163
"tgz": ["application/x-compressed"],
163164
"tiff": ["image/tiff"],
164165
"tif": ["image/tiff"],
166+
"toml": ["application/toml", "text/code"],
165167
"ttf": ["application/font-sfnt"],
166168
"txt": ["text/plain"],
167169
"vcard": ["text/vcard"],

0 commit comments

Comments
 (0)