From 88748612f770f2ff4883e38883c96419dcfbb466 Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Sat, 14 Sep 2013 15:23:22 -0700 Subject: [PATCH] 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 --- pkg/server/publish.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/server/publish.go b/pkg/server/publish.go index 8f29ef732..e2441e1bc 100644 --- a/pkg/server/publish.go +++ b/pkg/server/publish.go @@ -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
", pr.base, pr.ph.RootName, pr.rootpn, html.EscapeString(pr.suffix), html.EscapeString(pr.subres)) }