00065f2b by slene

fix mime bug !!

1 parent 0869df55
...@@ -526,10 +526,6 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request) ...@@ -526,10 +526,6 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
526 526
527 w.InitHeadContent(finfo.Size()) 527 w.InitHeadContent(finfo.Size())
528 528
529 if strings.HasSuffix(file, ".mustache") {
530 w.Header().Set("Content-Type", "text/html; charset=utf-8") //FIXME: hardcode
531 }
532
533 http.ServeContent(w, r, file, finfo.ModTime(), memzipfile) 529 http.ServeContent(w, r, file, finfo.ModTime(), memzipfile)
534 } else { 530 } else {
535 http.ServeFile(w, r, file) 531 http.ServeFile(w, r, file)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!