mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-18 01:57:02 +00:00
Set content-type properly on MailboxHtml handler
- Changes to upstream go.enmime help with #20 - Setting content-type is required so that browsers correclty render docs that don't include an <html> element.
This commit is contained in:
@@ -210,6 +210,7 @@ func MailboxHtml(w http.ResponseWriter, req *http.Request, ctx *Context) (err er
|
||||
return err
|
||||
}
|
||||
|
||||
w.Header().Set("Content-Type", "text/html")
|
||||
return RenderPartial("mailbox/_html.html", w, map[string]interface{}{
|
||||
"ctx": ctx,
|
||||
"name": name,
|
||||
|
||||
Reference in New Issue
Block a user