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:
parent
0869df5588
commit
00065f2b08
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user