server: set Content-Type on debug message.

It is currently autodetecting as text/plain which prevents chrome from
rendering content as HTML.

Change-Id: I58b99bf4d8719f37269937001461bdf71610d786
This commit is contained in:
Bill Thiede 2013-09-14 15:23:22 -07:00
parent b34c6198e4
commit 88748612f7
1 changed files with 1 additions and 0 deletions

View File

@ -390,6 +390,7 @@ func (pr *publishRequest) serveHTTP() {
}
if pr.Debug() {
pr.rw.Header().Set("Content-Type", "text/html")
pr.pf("I am publish handler at base %q, serving root %q (permanode=%s), suffix %q, subreq %q<hr>",
pr.base, pr.ph.RootName, pr.rootpn, html.EscapeString(pr.suffix), html.EscapeString(pr.subres))
}