mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-09-06 09:02:32 +00:00
16 lines
300 B
Go
16 lines
300 B
Go
package mime
|
|
|
|
import (
|
|
"mime"
|
|
)
|
|
|
|
var consensusMimes = map[string]string{
|
|
// rfc4329: text/javascript is obsolete, so we need to overwrite mime's builtin
|
|
".js": "application/javascript; charset=utf-8",
|
|
}
|
|
|
|
func init() {
|
|
for ext, typ := range consensusMimes {
|
|
mime.AddExtensionType(ext, typ)
|
|
}
|
|
}
|