mirror of https://github.com/perkeep/perkeep.git
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:
parent
b34c6198e4
commit
88748612f7
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue