Merge "server: set Content-Type on debug message."

This commit is contained in:
Brad Fitzpatrick 2013-09-15 16:54:12 +00:00 committed by Gerrit Code Review
commit a3fcac8def
1 changed files with 1 additions and 0 deletions

View File

@ -390,6 +390,7 @@ func (pr *publishRequest) serveHTTP() {
} }
if pr.Debug() { 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.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)) pr.base, pr.ph.RootName, pr.rootpn, html.EscapeString(pr.suffix), html.EscapeString(pr.subres))
} }