Skip to content

Commit 99dd52d

Browse files
committed
mime-types: add image/avif
1 parent 8c3882c commit 99dd52d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

mime-types/ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.1.2.2
2+
3+
* Add IANA registered `image/avif` type for `.avif` images. [#1059](https://github.com/yesodweb/wai/pull/1059)
4+
15
## 0.1.2.1
26

37
* Change type for JavaScript files to `text/javascript` [#1051](https://github.com/yesodweb/wai/pull/1051)

mime-types/Network/Mime.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ defaultExtensionMap =
102102
go (ext, mimeType) =
103103
Map.alter (Just . maybe [ext] (ext :)) mimeType
104104

105+
-- | Find the current table in IANA media-types registry
106+
-- https://www.iana.org/assignments/media-types/media-types.xhtml
105107
mimeAscList :: [(Extension, MimeType)]
106108
mimeAscList =
107109
[ ("123", "application/vnd.lotus-1-2-3")
@@ -150,6 +152,7 @@ mimeAscList =
150152
, ("atx", "application/vnd.antix.game-component")
151153
, ("au", "audio/basic")
152154
, ("avi", "video/x-msvideo")
155+
, ("avif", "image/avif")
153156
, ("aw", "application/applixware")
154157
, ("azf", "application/vnd.airzip.filesecure.azf")
155158
, ("azs", "application/vnd.airzip.filesecure.azs")

0 commit comments

Comments
 (0)