Skip to content

Commit 65e3e40

Browse files
committed
add mime types & encodings to browser REPL
1 parent 8a5abc4 commit 65e3e40

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

src/main/clojure/cljs/repl/browser.clj

+25
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,23 @@
3737
{".html" "text/html"
3838
".css" "text/css"
3939

40+
".ttf" "font/ttf"
41+
".otf" "font/otf"
42+
43+
".pdf" "application/pdf"
44+
4045
".jpg" "image/jpeg"
4146
".png" "image/png"
4247
".gif" "image/gif"
4348
".svg" "image/svg+xml"
4449

50+
".mp4" "video/mp4"
51+
".m4a" "audio/m4a"
52+
".m4v" "video/mp4"
53+
".mp3" "audio/mpeg"
54+
".mpeg" "video/mpeg"
55+
".wav" "audio/wav"
56+
4557
".js" "text/javascript"
4658
".json" "application/json"
4759
".clj" "text/x-clojure"
@@ -53,10 +65,23 @@
5365
(def mime-type->encoding
5466
{"text/html" "UTF-8"
5567
"text/css" "UTF-8"
68+
69+
"font/ttf" "ISO-8859-1"
70+
"font/otf" "ISO-8859-1"
71+
72+
"application/pdf" "ISO-8859-1"
73+
5674
"image/jpeg" "ISO-8859-1"
5775
"image/png" "ISO-8859-1"
5876
"image/gif" "ISO-8859-1"
5977
"image/svg+xml" "UTF-8"
78+
79+
"video/mp4" "ISO-8859-1"
80+
"audio/m4a" "ISO-8859-1"
81+
"audio/mpeg" "ISO-8859-1"
82+
"video/mpeg" "ISO-8859-1"
83+
"audio/wav" "ISO-8859-1"
84+
6085
"text/javascript" "UTF-8"
6186
"text/x-clojure" "UTF-8"
6287
"application/json" "UTF-8"})

0 commit comments

Comments
 (0)