This commit is contained in:
hoteas
2017-10-12 03:19:44 +00:00
parent 730e8441ef
commit b0d2e17b06
2 changed files with 5 additions and 18 deletions
+1 -1
View File
@@ -263,7 +263,7 @@ func (this *Application) handler(w http.ResponseWriter, req *http.Request) {
//设置header
mimeStr := Substr(path, strings.LastIndex(path, "."), len(path))
//fmt.Println(mimeStr)
//类型判断并设置Content-Type
if value, ok := mimeMaps[mimeStr]; ok {