1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-22 20:30:49 +00:00

fix mime bug !!

This commit is contained in:
slene 2013-12-18 00:05:04 +08:00
parent 0869df5588
commit 00065f2b08
2 changed files with 537 additions and 540 deletions

1073
mime.go

File diff suppressed because it is too large Load Diff

View File

@ -526,10 +526,6 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
w.InitHeadContent(finfo.Size())
if strings.HasSuffix(file, ".mustache") {
w.Header().Set("Content-Type", "text/html; charset=utf-8") //FIXME: hardcode
}
http.ServeContent(w, r, file, finfo.ModTime(), memzipfile)
} else {
http.ServeFile(w, r, file)