1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-18 01:57:02 +00:00

HTML view encoding fix

- HTML popup now specifies UTF8 encoding
- Version and build date are captured from goxc
- Version is displayed on status page, and initial log entry
This commit is contained in:
James Hillyerd
2014-03-12 09:09:47 -07:00
parent 8f10e18fef
commit 13868d85d4
7 changed files with 49 additions and 27 deletions

View File

@@ -210,7 +210,7 @@ func MailboxHtml(w http.ResponseWriter, req *http.Request, ctx *Context) (err er
return err
}
w.Header().Set("Content-Type", "text/html")
w.Header().Set("Content-Type", "text/html; charset=UTF-8")
return RenderPartial("mailbox/_html.html", w, map[string]interface{}{
"ctx": ctx,
"name": name,