fix mime bug !!
Showing
2 changed files
with
0 additions
and
4 deletions
This diff is collapsed.
Click to expand it.
| ... | @@ -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) | ... | ... |
-
Please register or sign in to post a comment