mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-15 21:51:23 +08:00
17 lines
300 B
Go
17 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)
|
|
}
|
|
}
|