-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.go
31 lines (23 loc) · 909 Bytes
/
init.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package spa
import "mime"
func init() {
mime.AddExtensionType(".html", "text/html")
mime.AddExtensionType(".js", "text/javascript")
mime.AddExtensionType(".mjs", "text/javascript")
mime.AddExtensionType(".txt", "text/plain")
mime.AddExtensionType(".xhtml", "application/xhtml+xml")
mime.AddExtensionType(".xml", "application/xml")
mime.AddExtensionType(".json", "application/json")
mime.AddExtensionType(".zip", "application/zip")
mime.AddExtensionType(".mp3", "audio/mpeg")
mime.AddExtensionType(".mp4", "video/mp4")
mime.AddExtensionType(".mpeg", "video/mpeg")
mime.AddExtensionType(".png", "image/png")
mime.AddExtensionType(".jpg", "image/jpeg")
mime.AddExtensionType(".jpeg", "image/jpeg")
mime.AddExtensionType(".tif", "image/tiff")
mime.AddExtensionType(".tiff", "image/tiff")
mime.AddExtensionType(".ttf", "font/ttf")
}
func addMimeMapping(ext string, contentType string) {
}