File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,17 @@ fn content_type_from_file_name(file_name: &str) -> String {
80
80
"js" => "text/javascript" . to_string ( ) ,
81
81
"css" => "text/css" . to_string ( ) ,
82
82
"json" => "application/json" . to_string ( ) ,
83
+ "svg" => "image/svg+xml" . to_string ( ) ,
84
+ "png" => "image/png" . to_string ( ) ,
85
+ "jpg" => "image/jpeg" . to_string ( ) ,
86
+ "jpeg" => "image/jpeg" . to_string ( ) ,
87
+ "gif" => "image/gif" . to_string ( ) ,
88
+ "ico" => "image/x-icon" . to_string ( ) ,
89
+ "webp" => "image/webp" . to_string ( ) ,
90
+ "woff" => "font/woff" . to_string ( ) ,
91
+ "woff2" => "font/woff2" . to_string ( ) ,
92
+ "ttf" => "font/ttf" . to_string ( ) ,
93
+ "otf" => "font/otf" . to_string ( ) ,
83
94
_ => {
84
95
info ! ( "Unknown file extension: {:?}" , extension) ;
85
96
"application/octet-stream" . to_string ( )
You can’t perform that action at this time.
0 commit comments