政企超链接开始集成

This commit is contained in:
hoteas
2022-03-02 12:14:07 +08:00
parent 91bf142782
commit d90591af75
4 changed files with 173 additions and 23 deletions
+8 -2
View File
@@ -420,8 +420,14 @@ func (that *Application) handler(w http.ResponseWriter, req *http.Request) {
header.Set("Cache-Control", "no-cache")
}
if strings.Index(path, ".m3u8") != -1 {
header.Add("Content-Type", "audio/mpegurl")
t := strings.LastIndex(path, ".")
if t != -1 {
tt := path[t:]
if MimeMaps[tt] != "" {
header.Add("Content-Type", MimeMaps[tt])
}
}
//w.Write(data)